This section describes the ChartDirector Javascript Library, which is used to support browser side user interactions with charts.
The ChartDirector Javascript Library provides the following features:
- CDML Tooltips: This is an enhanced form of tooltips which can be richly formatting.
- Responsive Design Support: Responsive design refers to a web page that can change depending on the viewing device. For example, it can display differently on a desktop browser versus a mobile browser. Some HTML elements, such as the HTML image map, is non-resizable with CSS. If a web page resizes an image using CSS, the associated image map will not work correctly. The ChartDirector Javascript Library will automatically resizes the image map to match the chart image to support its usage in responsive web design.
- Javascript Chart Viewer: A browser side Javascript control for supporting advanced chart user interactions, such as programmable track cursors, zooming and scrolling and AJAX chart updates.
- Javascript Viewport Control: A browser side Javascript control to let the user visualize and manipulate the viewport managed by the Javascript Chart Viewer.
- Javascript Chart Model: An object model of ChartDirector charts, making chart data and configuration accessible on the browser side. This facilitates implementation of programmable track cursors and other advanced user interface features.
The ChartDirector Javascript Library is implemented in the file "cdjcv.js". To use the ChartDirector Javascript Library, please include the following line in the <HEAD> section of the HTML code:
<SCRIPT SRC="/path/to/cdjcv.js">
Note: Please replace
"/path/to"
above to the actual path you put the "cdjcv.js" to.
The "cdjcv.js" in turn may load the following files, which should be located in the same directory as "cdjcv.js".
Filename | Description |
---|
wait.gif | Rotating clock wait symbol. |
spacer.gif | A 1-pixel transparent image. |
zoomin.cur | Zoom in cursor. |
zoomin.cur | Zoom out cursor. |
At runtime, "cdjcv.js" will detect the absolute URL of itself, and use it to load the above files. (It does not use relative URL, because the browser will interpret it to be relative to the URL of the containing HTML web page, not the URL of the "cdjcv.js".) If you would like "cdjcv.js" to load the above files from an alternative directory, you may put the URL of the directory in a global Javascript variable "cdjcv_path". "cdjcv.js" will look for this variable first before deriving the path from its own URL.
© 2021 Advanced Software Engineering Limited. All rights reserved.