Vote count:
0
I have used highstock chart for displaying the stock details in a website. I need to set the minimum and maximum y axis value with 5 decimal places
// Create the chart
jQuery('#container').highcharts('StockChart', {
chart : {
events : {
load : function () {
var series = this.series[0];
var chart;
setInterval(function () {
var pubnub = PUBNUB.init({});
pubnub.history({
channel : 'eurusd',
count : 1,
reverse:true,
callback : function(datafeed){
var x = (new Date()).getTime();
var y =parseFloat(datafeed[0]);
series.addPoint([x,y], true, true);
}
});
}, 1000)
}
},
},
rangeSelector: {
buttons: [ {
type: 'all',
text: 'All'
}],
},
yAxis: {
allowDecimals: true,
title: {
text: ''
}
},
}); }
Please help me resolve...
asked 30 secs ago
I need to set the min and max y axis value with 5 decimal places in highstock chart.Please help me resolve
Aucun commentaire:
Enregistrer un commentaire