question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tooltip.enabledOnSeries doesn't work as expected in irregular timeseries line charts

See original GitHub issue

Bug report

I have found some inconsistent tooltip.enabledOnSeries behavior in irregular timeseries line charts.

Codepen

Minimal working example: https://codesandbox.io/s/vue-basic-example-0ibes?fontsize=14&hidenavigation=1&theme=dark

Explanation

When using tooltip.enabledOnSeries I expect tooltips to be enabled on the series that have the corresponding indices, as specified in the docs. Right now I can’t get it to work in my chart, which is a timeline line chart with different time ranges.

Example values of enabledOnSeries in the Codepen example, and what happens:

  • enabledOnSeries: []: tooltips disabled for all series
  • enabledOnSeries: [0]: tooltips enabled for all series
  • enabledOnSeries: [1]: tooltips disabled for all series
  • enabledOnSeries: [0, 1]: tooltips enabled for all series
  • enabledOnSeries: [1, 2]: tooltips disabled for all series

The key element seems to be if series 0 is included or not, in which case all series get tooltips.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:9

github_iconTop GitHub Comments

2reactions
hillcjamescommented, Aug 23, 2022

Just want to chime in, this is currently broken (still or again) for multicharts.

0reactions
hauardcommented, Dec 20, 2022

No fix for this? Having the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apexcharts doesn't show correct value of x in tooltip
I got the following line chart: let dataCurrent = [ {'x': 'FIRST', 'y': 711} ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found