java - Highstock/Highchart OHCL not showing? -


hey guys having trouble loading data highstock charts.

i tired display chart highstock

my data.json

[{     "date":1395651841,     "price":11,     "amount":12,     "tid":33170585,     "price_currency":"usd",     "item":"none",     "trade_type":"bid"     },     {     "date":1395651836,     "price":4,     "amount":3,     "tid":33170584,     "price_currency":"usd",     "item":"none",     "trade_type":"ask"} ] 

and my html

    <script type="text/javascript">                     $(function() {     $.getjson('data.json', function(data) {          // create chart         $('#container').highcharts('stockchart', {               rangeselector : {                 inputenabled: $('#container').width() > 480,                 selected : 1             },              title : {                 text : 'tiredddd'             },              series : [{                 name : '@_@',                 data : data,                 type : 'areaspline',                 threshold : null,                 tooltip : {                     valuedecimals : 2                 },                 fillcolor : {                     lineargradient : {                         x1: 0,                          y1: 0,                          x2: 0,                          y2: 1                     },                     stops : [[0, highcharts.getoptions().colors[0]], [1, 'rgba(0,0,0,0)']]                 }             }]         });     }); });          </script> 

please assist me in finding bug

make sure have comma separated data.please debug(alert(data)) (1,2,3).

$.getjson('data.json', function(data) {alert(data); // other code......} 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -