i have this code
google.load("visualization", "1", { packages: ["corechart"] });
google.setOnLoadCallback(drawChart);
function drawChart() {
var xyz = [
['Language', 'Speakers'],
['German', 5.85],
['French', 1.66],
['Italian', 0.316],
['Romansh', 0.0791]
];
var data = google.visualization.arrayToDataTable(xyz);
var options = {
legend: 'none',
pieSliceText: 'label',
title: 'Swiss Language Use (100 degree rotation)',
pieStartAngle: 100,
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
</script>`
Now i want to include Dynamic Values From Database or From Server side which is not an issue.. the main concern is how to make the "xyz" array dynamic
Thank you in advance