Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C3.js show tooltip from button click

Tags:

javascript

css

c3

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

like image 854
segFault Avatar asked Sep 28 '22 12:09

segFault


1 Answers

The simpliest syntax is this:

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

jsFiddle demo

Is this is what you want?

like image 120
Kreozot Avatar answered Oct 03 '22 11:10

Kreozot