While ZingChart has a wide range of API methods that allow users to modify different parts of the diagram, not every attribute is accessible through a named method.
My suggestion would be to use the setdata strong> method , which is the catch-all API method to modify the JSON diagram. Chart state management will be external to ZingChart, but updates will be handled by a single call to the setdata strong> method .
zingchart.exec('myChart', 'setdata',{ data : myConfig });
Working demo: http://demos.zingchart.com/view/BG8SXI4W
I'm on the ZingChart team - let me know if you have any further questions.
source share