我试图在鼠标在图形上的任何地方显示提示,如下图所示(请参阅印度总案例数):
我尝试了这个solution,但它给了我一个错误:
slider_chart.html:962 Uncaught TypeError: child._hideDot is not a function
at SVGCircleElement.<anonymous> (slider_chart.html:962)
at Pt.each (d3.v5.min.js:2)
at slider_chart.html:952
at Array.forEach (<anonymous>)
at SVGSVGElement.<anonymous> (slider_chart.html:951)
at SVGSVGElement.<anonymous> (d3.v5.min.js:2)
第935-983行:
https://blockbuilder.org/ninjakx/241d14a27427dd89133e1b07919ee9b6
我正在尝试为第一张图实现它,然后将对其余图执行相同的操作,但是我收到此错误not a function
。我尝试在Google上搜索,但找不到任何解决方案。
我的第一张图表(total_chart
在function total_cases_chart()
Line no. 863-983
下定义。