我想用我的VB.Net 3.5 web應用程序後面的代碼中計算的數字替換硬編碼的數字。換句話說,下面的數字20,13和34。在此先感謝您的幫助。谷歌圖表:動態數據
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Tiers', 'Apps'],
['Tier 1', 20],
['Tier 1.5', 13],
['Tier 2', 34]
]);
var options = {
title: 'Balance'
};
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>