0

I am using highstock chart for displaying the stock chart.when charts gets loaded by default i am showing 6M button selected.

rangeSelector: {
 buttons: [{
                    type: 'day',
                    count: 1,
                    text: '1min'
                }, {
                    type: 'day',
                    count: 5,
                    text: '10min'
                }, {
                    type: 'month',
                    count: 6,
                    text: '6M'
                },
{
                    type: 'year',
                    count: 3,
                    text: '3yr'
                }, {
                    type: 'year',
                    count: 10,
                    text: '10yr'
                }
                    ],
                    inputEnabled: false,
                    selected: 2

                },

The chart contains lot of data points.So when i tap to another spot on the series, the time period above loses the "boldness". Hence i no longer know what was the time period i had selected.

enter image description here

If the chart contains only 3 buttons then its working fine. If more buttons then the button is disable. Can you tell me how to enable the selected button always when i tap on series of highstock chart?

Thanks in Advance.

4

1 回答 1

0

我打开这个例子http://www.highcharts.com/stock/demo/basic-line/gray并点击按钮,粗体不会消失。您使用哪个版本的 HS?你能准备你的例子作为现场演示吗?

于 2013-07-01T10:28:44.390 回答