Home forums Using CanvasJS Graph a CSV file Reply To: Graph a CSV file

#9251

xcorex
Member

Hi guys,
I’m using the #6371 code and my csv file is simple.

2015/08/10,718.00
2015/08/13,708.00
2015/08/18,738.34

I’m a linux user, and if I save the csv file with leafpad (notepad similar), I got a nice chart.

Saved with Leafpad

But, when I save the csv with the vim editor, I got a terrible chart.

Saved with vim

The problem is, this is a “line break” issue. I made a bash script to update the csv file and the problem persist. For example, the code below is sufficient to produce a wrong chart:
$ echo "2015/10/10,777.33" > file.csv

Is anyone smart enough to figure how to solve this? Thanks.