How to get values of chart from code behind c# asp.net web form, below is my script
<script type="text/javascript"
src="https://www.gstatic.com/charts/loader.js"></script>
<script type = "text/javascript">
google.charts.load('current', {packages: ['corechart']});
</script>
<script language = "JavaScript">
function drawChart() {
// Define the chart to be drawn.
var data = google.visualization.arrayToDataTable([
['Home Type', 'Total', 'Pending', 'Closed'],
['one', 20, 10, 10],
['two', 15, 6, 8],
['three', 5, 1, 4],
['four', 5, 1, 8],
['five', 5, 1, 4],
['six', 20, 10, 10],
['seven', 15, 6, 8],
['eight', 5, 1, 3],
['nine', 5, 1, 8],
['ten', 5, 1, 12],
]);
var options = {colors: ['#257ec2', '#f1565a', '#2ab691'], legend: { position: 'top', maxLines: 3 },chartArea:{
left:5,
top: 20,
width: '100%',
height: '370',
}};
// Instantiate and draw the chart.
var chart = new google.visualization.ColumnChart(document.getElementById('container'));
chart.draw(data, options);
}
google.charts.setOnLoadCallback(drawChart);
</script>
below is my html
<div id = "container" style = "height: 490px;"></div>
i am not getting any idea to get dynamic from code behind c#