简体   繁体   English

如何在DHTMLX图表中创建可滚动图表

[英]How to create scrollable charts in DHTMLX charts

Is there any way to create scrollable DHTMLX Chart (Bar or Line chart). 有什么方法可以创建可滚动的DHTMLX Chart (条形图或折线图)。

As I understood from the code, the chart is drawing in three canvases. 从代码中可以看出,该图表在三个画布中绘制。 one for horizontal lines, one for vertical lines and another for the actual chart. 一个用于水平线,一个用于垂直线,另一个用于实际图表。 So, I am not able to make the chart scrollable. 因此,我无法使图表可滚动。

I can put the total chart into a DIV and then I can use overflow:scroll . 我可以将总图表放入DIV ,然后可以使用overflow:scroll But with this the y-axis labels will be hidden when I scroll to right side. 但是,当我滚动到右侧时,y轴标签将被隐藏。

Is there any way to draw scrollable charts with DHTMLX chart . 有没有办法用DHTMLX chart绘制可滚动DHTMLX chart scrollable means like DHTMLX Gantt . DHTMLX Gantt类的可滚动方式。

Could you please suggest me. 你能建议我吗。 Thanks in advance. 提前致谢。

Unfortunatelly there is no such functionality in dhtmlxChart. 不幸的是,dhtmlxChart中没有此类功能。 You can only scroll the oughter container. 您只能滚动提示容器。

Dhtmlx图表有一个选项,可以添加所谓的“系列”(示例: http ://dhtmlx.com/docs/products/dhtmlxChart/samples/08_dynamic/01_add.html,您可以尝试创建一个事件,该事件将控制垂直/水平滚动以动态添加这些“系列”以创建假滚动效果,但是我认为这太多了,获得的增益也很少。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM