我需要使用n3-charts在我的图表中显示一些文本数据。例如,这是我的数据对象:
[{x: new Date(X,X,X), stopNum:stopNumber, stopsName:stopName, edge:tolerance, satsView:satsVal, satsUse:satsUseVal},
{x: new Date(X,X,X), stopNum:stopNumber, stopsName:stopName, edge:tolerance, satsView:satsVal, satsUse:satsUseVal},
{x: new Date(X,X,X), stopNum:stopNumber, stopsName:stopName, edge:tolerance, satsView:satsVal, satsUse:satsUseVal}]我需要的是显示到工具提示后,鼠标悬停显示公交车站的名称。
我尝试使用工具提示格式化程序、tooltipHook和其他一些选项,但都不起作用。你能给我推荐一些能帮助我解决这个问题的方法吗?
非常感谢!
https://stackoverflow.com/questions/44517002
复制相似问题