c3js / c3js/c3

exception when calling chart.tooltip.show()

Open
#1,775 6 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Hello,

I have a c3 pie chart and I'm trying to manually invoke the tool tip when I hover over the legend.

I looked at the example from this thread here: https://github.com/c3js/c3/issues/509

but this doesn't seem to be working for me.

When I say: chart.tooltip.show({x:1}); it tells me:

![cannot read property getboundingclientrect of null](https://cloud.githubusercontent.com/assets/20560831/16992103/52ea6bc0-4e5b-11e6-9e23-8fb46763b077.png)

I think I know the bounding client rectangle it's talking about but I don't know how to get it or pass it into the show() function.

Please help. Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.