Organizational Chart Demo (2)
This example shows some features of this library. First, the capability of rendering multiple charts in the same page. You can see in the code that the JSON file containing the organizational structure is queried from the web server only once (this optimizes the library response time). Shown first are three forms of rendering the same chart; they correspond to different stylish "options". The fourth chart is different from the others; it shows a very wide chart that can't be displayed in the web page, so we use here the capability for zoom, drag and print to PDF. Some nodes have a different render style; they have a "subtype:dashed" in the JSON specification. All the boxes responses to the click event. This event can be changed easily in the client code; look inside this web page, enable the "mailto:" feature and try it.