javascript - Adding a custom drop down to highstock range selector menu -


i want add custom drop down button following image highchart. tried adding custom button in this fiddle, doesn't provide way add drop down above chart. 1 know correct method.

    exporting: {         buttons: {             custombutton: {                 x: -150,                 onclick: function () {                     alert('clicked');                 },                 symbol: 'circle'             }         }     } 

enter image description here

you can use html select defined css styles, position absolute , top/left. mean using tag in html, placed absolutely.

html:

<div class="chart"> <select>     <option>ohlc</option>     <option>candlestick</option> </select> <div id="container" style="height: 400px; width:750px;"></div> 

css:

.chart { position:relative; } .chart select {     position:absolute;     right:50%;     top:45px;     z-index:9999; } 

example: http://jsfiddle.net/7v2bwv5u/2


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -