You are so very close to what you want. You already handle any number of rows of data and any number of extra columns. You just need to remove the first row. Here is what you need to add:
// Since the first line is column names we will get rid of it.
[login to view URL](0, 1);
See in your code below. If this is what you wanted please accept my bid and give me a review. Sorry I could not make the bid any lower. Freelancer requires a minimum bid.
$.get('[login to view URL]', function(data) {
// Split the lines
var lines = [login to view URL]('\n');
var i = 0;
var series = {
data: []
};
// Since the first line is column names we will get rid of it.
[login to view URL](0, 1);
// Iterate over the lines and add categories or series
$.each(lines, function(lineNo,line) {
var items = [login to view URL](',');
[login to view URL]({
type:'pie',
name: items[0],
y:parseFloat(items[1])
});
});
[login to view URL](series);
// Create the chart
var chart = new [login to view URL](options);
});
Hope this helps,
Steven