0

On our website http://tradingderivatives.eu/DAX-root.html, you can select a part of the tables and the graph will respond by zooming; the table event handers call the setVisibleChartRange method of the graph. Is there something similar for the graphs by Dygraphs?

I tried,among others, to google for "setVisibleChartRange Dygraphs" but nothing useful appears.

4

1 回答 1

0

你通过调用来做到这一点updateOptions。如果要设置 y 轴范围,请设置valueRange. 如果要设置 x 轴范围,请使用dateWindow

g.updateOptions({
  dateWindow: [minDateInMillis, maxDateInMillis],
  valueRange: [yAxisMin, yAxisMax]
});
于 2015-12-04T16:42:39.220 回答