score:1

Accepted answer

You should:

  1. Normalize your csv result
  2. Put correct option to your highchart

see this example

score:2

Look at this part:

jQuery.each(lines, function(lineNo, line) {
    var items = line;

    // header line containes categories
    if (lineNo == 0) {
      jQuery.each(items, function(itemNo, item) {

Do you see the mistake?? You are iterating over a string! You need to split each line. If your values in lines are separated by tabs, then you can simply do:

var items = line.split('\t');

See this jsFiddle.


Related Query