Why ZK jqPlot?
Current solutions of chart plotting in ZK includes the use of JFreeChart Engine and Flash Chart, both of which are already integrated with ZK. However, ZK jqPlot provides another option for developers and can solve some of the issues raised by the two:
- HTML5 is the trend at the moment whereas Flash may not be supported on mobile in the future and may raise compatibility issues
How to use?
The following example is a bar chart with onClick Event that alerts some information.
If you have tried chart component on the ZK Live Demo, you may notice the code is almost the same – it is easy to migrate to jqPlot add-on from existing solution.
This add-on is currently under construction, but it already supports some basic features of chart plotting. You can download the source code here and try more examples.