Search code examples
javascriptdygraphs

dygraph: x-axis y axis set min and max values


I am displaying a few graphs in different frames and I would like to have the same min and max values for the axis in all of them.

If I understand well, I can use the valuerange property for the Y axis.

What is the equivalent for the X axis ? I have been looking in the documentation and I cannot find it. Thanks


Solution

  • It's dateWindow.

    You may also be interested in the synchronizer extra, which will keep your chart axes in sync for you.