简体   繁体   English

删除Javascript页面上的控件并放入另一个div

[英]Removing controls on a Javascript page and placing in another div

I want to implement highcharts into my application. 我想在我的应用程序中实现高图。

Example: http://jsfiddle.net/gh/get/jquery/1.6/highslide-software/highcharts.com/tree/master/samples/stock/demo/candlestick/ 示例: http//jsfiddle.net/gh/get/jquery/1.6/highslide-software/highcharts.com/tree/master/samples/stock/demo/candlestick/

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. 我想从图表中删除缩放控件(例如1m,3m,6m,YTD,1y,全部),并将其放置在容器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

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: 您只需使用此处提到的开发人员之一,就可以利用API的内置功能:

http://highslide.com/forum/viewtopic.php?f=9&t=10915&p=49390&hilit=external+controls#p49463 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. 基本上,您需要制作一张没有实际控件的图表,然后创建必要的代码来相应地操纵图表的内容。

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

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