Google Chart Tooltip Not Working

前端 未结 3 732
予麋鹿
予麋鹿 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

    I need to give credit to Catherine Manzo on the Google Charts Form for figuring this out. Remove focusTarget from the chart Options and bingo!!

    Catherine Manzo said: I finally went back and compared the html code for my new charts with ones made over the summer, when the tooltip worked. I realized there was an extra attribute in the newer code (focusTarget) and when I deleted it, the tooltip function began working again! The attribute to delete is highlighted in the code below:

    chart.opts = {title:"Company Performance",titlePosition:"out",focusTarget:"default",colors:['#66CDAA','#E0FFFF'],pointShape:"circle",hAxis: {format:"$ #,###.##",textPosition:"default",title:"In Thousands",slantedText:true,viewWindowMode:"default"},tooltip:{isHtml:false}};
    

提交回复
热议问题