Question: How to synchronize auto-updated charts? #797

ktsaou opened this Issue Oct 30, 2016 · 0 comments


None yet

1 participant

ktsaou commented Oct 30, 2016

As part of netdata (, I am trying to have 2 or more charts show the same y-range.

I know of synchronizer.js, but it cannot help me.

In netdata charts auto-update every second. What I need is a way to set the y-range, using the widest min-max among all the charts. That is, the minimum y of all charts, to the maximum y of all charts.

I implemented it using g.axes_[0].extremeRange and a duplicate call to updateOptions() if the chart is cropped, but I understand g.axes_ is a private API.

So, is there any other way?

PS: Ideally, I would need a flag that will state that valueRange should never crop the chart, i.e that valueRange should be used as the smallest visible range, so that if the chart is found extending beyond valueRange, the chart should scale to have it all visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment