javascript - HighChart Chart displaying incorrect data when switched to StockChart -


i'm using highcharts render highstock chart. reason when switch highstock chart changes labels random data.

when change

chart_650422 = new highcharts.chart({ 

enter image description here

into

chart_650422 = new highcharts.stockchart({ 

enter image description here

the xaxis labels changed random data.

here demo: http://jsfiddle.net/14we85px/

in short: highstock doesn't support categorized xaxis, see api - options type or categories not listed.

however, don't have switch highstock - if have highstock.js file included, can create highcharts chart enabled features highstock, see demo: http://jsfiddle.net/14we85px/3/ (changes: removed scroolbar (?) , added scrollbar.enabled = true).


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -