当鼠标在图表上的任意位置时,无法显示提示

时间:2020-06-20 11:42:45

标签: d3.js dc.js

我试图在鼠标在图形上的任何地方显示提示,如下图所示(请参阅印度总案例数):

enter image description here

我尝试了这个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_chartfunction total_cases_chart() Line no. 863-983下定义。

0 个答案:

没有答案
相关问题