2017-07-14 14 views
0

私はデフォルトのrangeSelectorとして5Mを作成しようとしていますが、セレクタの 'all'を主張し続けているようです。デフォルトのrangeSelector Highstockを変更できません

rangeSelector: { 
      enabled: true, 
      buttons: [{ 
        count: 2, 
        type: 'minute', 
        text: '2M' 
       }, { 
        count: 5, 
        type: 'minute', 
        text: '5M' 
       }, { 
        count: 15, 
        type: 'minute', 
        text: '15M' 
       }, { 
        count: 30, 
        type: 'minute', 
        text: '30M' 
       }, { 
        count: 3, 
        type: 'hour', 
        text: '3H' 
       }, { 
        count: 1, 
        type: 'day', 
        text: '1D' 
       }, { 
        count: 30, 
        type: 'day', 
        text: '30D' 
       }, { 
        type: 'all', 
        text: 'All' 
       }], 
      selected: 5, 
     }, 

コードのどこが間違っているか教えていただけますか? あなたのお手伝いをよろしくお願いします。

答えて

0

allButtonsEnabled:を入力し、選択を変更して問題を解決しました。。しばらく前にちょっと混乱してしまいました。

rangeSelector: { 
      enabled: true, 
      allButtonsEnabled: true, 
      buttons: [{ 
        count: 2, 
        type: 'minute', 
        text: '2M' 
       }, { 
        count: 5, 
        type: 'minute', 
        text: '5M' 
       }, { 
        count: 15, 
        type: 'minute', 
        text: '15M' 
       }, { 
        count: 30, 
        type: 'minute', 
        text: '30M' 
       }, { 
        count: 3, 
        type: 'hour', 
        text: '3H' 
       }, { 
        count: 1, 
        type: 'day', 
        text: '1D' 
       }, { 
        count: 30, 
        type: 'day', 
        text: '30D' 
       }, { 
        type: 'all', 
        text: 'All' 
       }], 
      selected: 1, 
     }, 
+0

ボタンはデフォルトで有効になります。ズーミングが動作しているかどうか確認しましたか?更新されたjsfiddleを提供できますか? – Strikers

関連する問題