i am creating highcharts (stacked column) ref http://www.highcharts.com/demo/column-stacked/gray
which requires it data to be display in a format like
series: [{
name: 'John',
data: [5, 3, 4, 7, 2]
}, {
name: 'Jane',
data: [2, 2, 3, 2, 1]
}, {
name: 'Joe',
data: [3, 4, 4, 2, 5]
}]
But i have same in HTML Table
John Jane Joe
5 2 3
3 2 4
4 3 4
7 2 2
2 1 5
By using c# code behind i am able to convert HTML Table to string
string sHTMLTable = "John,5,3,4,7,2|Jane,2,2,3,2,1|Joe,3,4,4,2,5";
How can i convert same string in HighCharts required Array format ?