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



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


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.