问题描述
基本上我希望jqplot条形图能够根据传递给它的数据范围自动调整自身大小.
Basically I want jqplot bar graph to be able to size itself automatically according to the data range passed to it.
在我的应用程序中,数据范围(坐标)和刻度数可能会有所不同,因此我需要一些有关正确调整图表大小的帮助,以避免任何重叠.
In my application the data range (ordinates) and the number of ticks may vary, so I need some help regarding sizing my chart properly to avoid any overlapping.
我曾经尝试过使用固定高度和宽度的HTML滚动,但是它没有按我希望的那样工作.
I have tried using HTML scroll with fixed height and width but it didn't work as I hoped.
我们也非常感谢有关jqplot的X轴滚动的任何帮助.
Also any help regarding X-Axis scrolling of jqplot will be highly appreciated.
推荐答案
jqplot
没有内置功能,可在出现大数据时引入滚动条.您必须像jquery slider
或HTML div滚动一样应用解决方法.
jqplot
does not have inbuilt functionality to introduce scroll bars in case of large data. You have to apply workaround on your side like jquery slider
or HTML div scroll.
但是我建议您使用jqplot
的缩放功能,如此处
However I suggest you to use zoom feature of jqplot
as explained here
这篇关于自动调整jqplot条形图的大小以适应不同的数据范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!