I am trying to create a pie chart where rather than the data being an actual number, it is the name of a variable as I am doing mathematical operations to the raw data from a database.
var data = new google.visualization.DataTable();
data.addColumn('string', 'item');
data.addColumn('number', 'value');
data.addRows([
['A', a],
['B', b],
['C', c],
['D', d],
['E', e],
['F', f],
['G', g]
]);
The only time that I can display the graph is when a, b, c, d, e, f, and g are actual numerical values. Unfortunately, I have no idea of knowing those values as they are based on the data from the database. Any help is greatly appreciated. Thanks.