Dynamic Change - Google Chart Type

前端 未结 1 1968
无人及你
无人及你 2020-12-11 10:56

Depends on the select type, the chart should display. I prepared JSON. But I need to change chart type dynamically.

I tried differently. But got an error. Is there

相关标签:
1条回答
  • 2020-12-11 11:19

    try it like this...

    var chartTypeContent = new google.visualization[chartType](document.getElementById('chart_div'));
    
    0 讨论(0)
提交回复
热议问题