I want to change "x" to "x" without creating a new instance of the zoom-type, I have to do it as if myChart.options.chart.zoomType
To greed, set the blank as a clone series after the high chars draw it blank.
var series clone = [{Name: 'Euro to USD', data: [1,2,3,4,4,5,6,7,7, 8,8,8,9,10,14]} To Set Series Options
Var chart Option = {chart: {rendereTo: 'container', zoom type: 'XI'}, range selector: {Selected: 1}, series: [{Name: 'USD to EUR', data: [1,2,3, 4,4,5,6,7,7,8,8,8,9,10, 14]}]} var chart = new highchart. Stock chart (chart option); And when you want to change the value of ZoomType, repeat the chart like this
chartOptions.chart.zoomType = 'y'; ChartOptions.series = seriesClone; Mychart = NewHightes Storkart (chart option); Work example
No comments:
Post a Comment