删除 Javascript 页面上的控件并放入另一个 div 中
我想在我的应用程序中实现 highcharts。
我想从图表中删除缩放控件(例如 1m、3m、6m、YTD、1y、All)并将它们放在容器 div 之外。但我不希望这些控件位于图表内。我想将这些控件放置在页面顶部。
Please can any one help me to solve this issue.
Thanks in advance
I want to implement highcharts into my application.
I want to remove the zoom controls (like 1m, 3m, 6m, YTD, 1y, All) from the chart and place them out of the container div. But i don't want those controls inside the chart. I want to place those controls at the top of the page.
Please can any one help me to solve this issue.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答是,您可以做您正在寻找的事情。您只需要像此处提到的开发人员之一一样使用 API 的内置函数:
http://highslide.com/forum/viewtopic.php?f=9&t=10915&p=49390&hilit=external+controls#p49463
基本上你制作了一个图表/出实际的控件,然后创建必要的代码来相应地操作图表的内容。
The short answer is that it is possible to do what you are looking. You will simply need to make use of the built-in functions of the API as one of the developers mentioned here:
http://highslide.com/forum/viewtopic.php?f=9&t=10915&p=49390&hilit=external+controls#p49463
Basically you make a chart w/out the actual controls and then create the necessary code to manipulate the content of the chart accordingly.