Google Chart Tooltip Not Working

前端 未结 3 768
予麋鹿
予麋鹿 2021-01-14 09:24

I am currently working on Google Chart using ASP.NET and connecting it to the database (SQL Server). But I have a problem when trying to customize the tool tip.

Here

3条回答
  •  情书的邮戳
    2021-01-14 09:43

    Adding to note.

    note 5:

    You can only modify tooltip if you use google.visualization like so:

    new google.visualization.LineChart(divChart).draw(dataTable,options);
    

    Not google.charts:

    new google.charts.Line(divChart).draw(dataTable,options);
    

    But, make sure to include theme: 'material' in the options of google.visualization to modernize the theme.

提交回复
热议问题