Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 C3.js 绘制一些数据。我希望能够通过单击按钮显示最后一个数据点系列的工具提示,甚至在图表呈现后默认显示。有没有办法做到这一点?他们的文档有一个 tooltip.show 部分,但没有文档。
缺少文件
最简单的语法是这样的:
chart.tooltip.show({x: 5});
jsFiddle 演示
这是你想要的吗?