Flot: Zoom to Far Right by Default

不想你离开。 提交于 2019-12-06 11:26:39

On your initial zoom, just set the center option to the width of your chart:

$.plot($('#graph_with_zoom'), [data], plot_options).zoom({
    'amount': total_ticks / 5,
    'center': { left: 400, top: 0 }
});

Updated fiddle here.

flot provide Selection and zooming example. you can select range of portion and it will redraw your graph.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!