ZingChart: Can I Have One Chart Modify Another?

This is a very common question and you can definitely do this in ZingChart. You will utilize our API methods and API events. The following demo registers a node_click event. Within that, the event grabs the nodevalue (and several other properties) and updates the gauge to display that value.

ZingChart Graphset Version

zingchart.node_click = function(p) {
    zingchart.exec('myChart', 'setseriesvalues', {
        graphid: 1, //represents the gauge graph,
        plotindex: 0,
        values: [p.value]
    });
}

Example: https://demos.zingchart.com/view/PBOYDXPH

Multiple
Version

zingchart.node_click = function(p) {
    zingchart.exec('myGuage', 'setseriesvalues', {
        plotindex: 0,
        values: [p.value]
    });
}

Example: https://demos.zingchart.com/view/00ZHDK76


Documentation
API methods
API events

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us