I'm using Google Charts on my web application and would like to change the chart displayed using a dropdown list.
The dropdown list stores the chart type in code behind and I'm trying to insert the VB.net variable in the var chart variable.
var chart = new google.visualization.datachart(document.getElementById('chart_div')); chart.draw(data, options);
The value in bold defines which chart gets displayed (ColumnChart, LineChart etc)
How's best to accomplish this?