javascript - Highcharts datetime tick start and interval -
javascript - Highcharts datetime tick start and interval -
the info starts @ 6am on mon , has info point each hour. having problem getting xaxis tick marks read "6am monday", , repeat every 24 hours.
any tips? here fiddle http://jsfiddle.net/4x136qxg/1/
here main graphing function:
var dayinmilliseconds = 3600 * 1000 * 24; $(function () { $('#chart1').highcharts({ chart: { type: 'area' }, title: { text: 'orders' }, xaxis: { type: 'datetime', datetimelabelformats: { // month: '%a', }, // tickinterval: dayinmilliseconds, title: { text: null }, labels: { align: 'left', x: 3 }, // startontick: true, // endontick: true, // min: 1413352800000, }, yaxis: { title: { text: null }, min: 0, }, legend: { enabled: false }, plotoptions: { area: { marker: { enabled: false, symbol: 'circle' }, linewidth: 0, fillopacity: 1, // pointstart: 1413352800000, }, }, series: [{ name: '1', color: '#edc54b', data: seriesdata[0].data },{ name: '2', color: '#edc54b', data: seriesdata[1].data },{ name: '3', color: '#edc54b', data: seriesdata[2].data },{ name: '4', color: '#edc54b', data: seriesdata[3].data },{ name: '5', color: '#edc54b', data: seriesdata[4].data },{ name: '6', color: '#edc54b', data: seriesdata[5].data },{ name: '7', color: '#fbd046', data: seriesdata[6].data }] }); });
javascript highcharts data-visualization
Comments
Post a Comment