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.

Extend custom tooltip example with more values

See original GitHub issue

Apex Charts tooltips are very powerful and I like that we can customize them with the Apex.tooltip.custom method. A regular Apex Charts tooltip contains lots of information in it, however in the custom tooltip example you have (https://codepen.io/apexcharts/pen/NBdyvV) you only show how to get the current value which is the easiest to find. I tried to find the category names but the w object is so huge it’s very hard to find the info you need there. It would be great if you could extent the custom tooltip example with all the info you have in the regular tooltip.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
ederson13commented, Jan 31, 2020

i had the same issue use categoryLabels instead of labels

4reactions
junedchhipacommented, Jan 2, 2020

Updated the codepen. X-values or categories are accessible in w.globals.labels

tooltip: {
  custom: function({ series, seriesIndex, dataPointIndex, w }) {
    return (
      '<div class="arrow_box">' +
      '<span>' +
      w.globals.labels[dataPointIndex] +
      ': ' +
      series[seriesIndex][dataPointIndex] +
      '</span>' +
      '</div>'
    )
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add custom tooltip items to Apexcharts? - Stack Overflow
To do this, you need to add a custom tooltip to the options object. Access the w object passed into the function to...
Read more >
Customizing tooltips in Power BI Desktop - Microsoft Learn
Create custom tooltips for visuals using drag-and-drop. ... Tooltips are an elegant way of providing more contextual information and detail ...
Read more >
Custom Tooltip - CodePen
Custom Tooltip · ApexCharts. Follow. Love Run. Pen Editor Menu. Settings. Change View. Use Left Layout Use Top Layout Use Right Layout.
Read more >
Custom tooltips ‒ Qlik Sense on Windows
Creating a custom tooltip · In sheet view, click · Select the chart to edit. · In the properties panel, click Appearance, and...
Read more >
How to Add Custom Tooltips to Charts - GrapeCity
Build a Custom Tooltip · propertyName: Any property of the data object represented by the point. · seriesName: Name of the series that...
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