chartjs-plugin-datasource icon indicating copy to clipboard operation
chartjs-plugin-datasource copied to clipboard

New/empty line in csv brakes timeline

Open Saur0o0n opened this issue 5 years ago • 2 comments

Hi, Can you implement some trimming/sanitization of the csv - so the empty line won't crash chart? When last line has '\n' on the end this produces empty data and charts start from beginning of the timescale.

Saur0o0n avatar Sep 23 '19 12:09 Saur0o0n

Hi, same problem here. With newline at the end of csv, the scale always start at 1970 Removing the newline at the end of csv file solve the issue. Could you correct this?

risoul avatar Mar 17 '21 14:03 risoul

Workaround : defining ticks: { min: solve the issue as we can choose the starting point of the chart.

risoul avatar Mar 22 '21 13:03 risoul