图表。使可见图表适应yaxis

时间:2016-12-14 18:37:07

标签: charts flot

当我将图表拖过x轴时,我可以将图表中的可见数据调整到Y轴吗?

在实际示例中,我可以将图表拖过X轴,但图表不适合Y轴。 y min和y max选项相同,并计算所有图表。

http://plnkr.co/edit/Yulri34tqD80vLFHHGsD?p=preview

pcov

1 个答案:

答案 0 :(得分:0)

看看

Flot charts - changing the y axis on the fly

您可以获取最小值和最大值,并设置如下图:

plot.getOptions().yaxes[0].min = 0;
plot.getOptions().yaxes[0].max = yourMAXNOW;
相关问题