segFault
segFault

Reputation: 1228

C3.js show tooltip from button click

I am using C3.js to graph some data. I want to be able to show the tooltip for the last data point series from a button click or even by default once the chart has rendered. Is there anyway to do this? Their documentation has a section for tooltip.show but there is no documentation for it.

missing documentation

Upvotes: 5

Views: 2181

Answers (1)

Kreozot
Kreozot

Reputation: 1576

The simpliest syntax is this:

chart.tooltip.show({x: 5});

jsFiddle demo

Is this is what you want?

Upvotes: 5

Related Questions