There is a problem with the output of the schedule, taking into account the time (day, hour, minute), by date everything works fine. I use the chartist.js library, moment.js demo: Graph

var chart = new Chartist.Line('.ct-chart', { series: [ { name: 'series-1', data: [ {x: new Date('September 1, 2016 00:00:00'), y: 346.2}, {x: new Date('September 1, 2016 11:00:00'), y: 346.9}, {x: new Date('September 6, 2016 12:00:00'), y: 346.9}, {x: new Date('September 12, 2016 05:00:00'), y: 346.9}, {x: new Date('September 12, 2016 22:00:00'), y: 346.9}, {x: new Date('September 18, 2016 06:10:00'), y: 347.8}, {x: new Date('September 18, 2016 23:10:00'), y: 346.9}, {x: new Date('September 24, 2016 10:00:00'), y: 345.9}, {x: new Date('September 30, 2016 03:00:00'), y: 347.8}, {x: new Date('September 30, 2016 21:00:00'), y: 346.9} ] }, { name: 'series-2', data: [ {x: new Date('September 1, 2016 00:00:00'), y: 342.2}, {x: new Date('September 1, 2016 22:40:00'), y: 342.9}, {x: new Date('September 6, 2016 12:00:00'), y: 342.9}, {x: new Date('September 12, 2016 05:00:00'), y: 342.9}, {x: new Date('September 12, 2016 22:00:00'), y: 342.9}, {x: new Date('September 18, 2016 06:10:00'), y: 343.8}, {x: new Date('September 18, 2016 23:10:00'), y: 342.9}, {x: new Date('September 24, 2016 10:00:00'), y: 341.9}, {x: new Date('September 30, 2016 03:00:00'), y: 343.8}, {x: new Date('September 30, 2016 21:00:00'), y: 342.9} ] } ] }, { axisY: { type: Chartist.FixedScaleAxis, ticks:[340,341,342,343,344,345,346,347,348,349,350], low: 340, high: 350, labelInterpolationFnc: function(value) { return (value) + 'тг.'; } }, axisX: { type: Chartist.FixedScaleAxis, divisor: 6, labelInterpolationFnc: function(value) { return moment(value).format('DD.MM.YYYY'); } }, fullWidth: true, lineSmooth: false, height:'500px', chartPadding: { left: 20 } }); chart.on('draw', function(data) { if(data.type === 'point') { var circle = new Chartist.Svg('circle', { cx: [data.x], cy:[data.y], r:[5], }, 'ct-circle'); data.element.replace(circle); } }); 

Closed due to the fact that off-topic participants Kromster , Denis , aleksandr barakin , user207618, fori1ton Nov 1, '16 at 6:54 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Kromster, Denis, aleksandr barakin, Community spirit, fori1ton
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Questions asking for help with debugging (“why does this code not work?”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question. Questions without an explicit description of the problem are useless for other visitors. - Kromster

0