Home Forums Chart Support TWO graph in one page Reply To: TWO graph in one page

#43125

@pimohdaimaoh,

It seems like the text file you are passing contains multiple space between values in a line. To overcome this you can split each line with the help of regex like /\s+/ instead of just giving space " ". Also you need skip the lines from the text files which doesn’t contain data for the chart. For e.g. in above text file, you should start parsing it from 5th line for(var i = 4; i < dpsList.length; i++).

var separateData = dpsList[i].split(/\s+/);

—-
Manoj Mohan
Team CanvasJS