如何启用highcharts x和y轴滚动条? [英] How to enable highcharts x and y axis scrollbars?

查看:361
本文介绍了如何启用highcharts x和y轴滚动条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何启用highcharts滚动条。大多数论坛建议使用Highstock来获得滚动条。我在 http://www.highcharts.com/stock/demo 上看到了highstock演示。它不支持highcharts支持的所有图表类型。

How can I enable highcharts scroll bars. Most of the forums suggests to use Highstock to get the scrollbar. I saw highstock demo at http://www.highcharts.com/stock/demo. It does not support all the chart types that highcharts supports.

谢谢,
Krishna

Thanks, Krishna

推荐答案

在做了一些R& D找到解决方案后,对于需要滚动的div,我设置溢出滚动并在加载事件中设置适合屏幕显示的宽度。然后滚动条自动出现。下面是示例。

After doing some R&D found a solution, for the div that requires scrolling I set overflow to scroll and in the load event setting the width appropriate for screen display. Then scroll bars are coming automatically. Below is the sample.

图表:{type:'column',events:{load:function(event){$('#container).width(800) ; }}},

chart: { type: 'column', events: { load: function (event) { $('#container).width(800); } } },

这篇关于如何启用highcharts x和y轴滚动条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆