Line charts more than one line

Line charts more than one line

  
Hi Community,

I want to build a Line Chart with two lines, with records from a database. I’ve Found in here:
http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/line-basic/
similar of what I want to do.
I created an expression, named the Div and added to the expression. Like $('#"+ container.Id +"').
All worked out fine. Now for the series, down I copied the example series(found at the website above):
        series: [{
            name: 'Tokyo',
            data: [ ]
        }, {
            name: 'New York',
            data: [-0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5]
        }, {
            name: 'Berlin',
            data: [-0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0]
        }, {
            name: 'London',
            data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
        }]
    });
});
 
All data is hard coded, and my though was to create a local variable with a foreach cycle and add each value to that local variable.(image below).


How can I above in data of Tokyo insert the values of the local variable, putting a comma between each value and excluding the last one? I’m lost! :/

Best Regards
Andrew


Altough found here how to build up various lines in a line chart.
However if someone could answer the above question, i would be very gratefull.

Best Regards
Andrew