以下配置正确选择了范围,但按钮没有突出显示:
rangeSelector: {selected: 3}
相同的配置在没有角度的情况下工作正常。是否有某些特定于高级图表的东西我不知道?这是jsfiddle。
rangeSelector: {
selected: 3,
enabled: true,
buttons: [{ type: 'day',count: 1, text: '1d' },
{type: 'day', count: 2, text: '2d' },
{type: 'day', count: 7, text: '1 wk' },
{type: 'day',count: 14, text: '2 wk'},
{type: 'month', count: 1, text: '1m'},
{ type: 'year', count: 1, text: '1y'},
{type: 'all', text: 'All'}]
}