apexcharts.js icon indicating copy to clipboard operation
apexcharts.js copied to clipboard

Show all series in a tooltip in a grouped column chart with multiple series.

Open C3maLi opened this issue 5 years ago • 11 comments

Hi's,

I want to show the data series as an example below! Is it possible to do this? Thank you.

(https://www.fusioncharts.com/charts/column-bar-charts/grouped-column-chart-with-multiple-series?framework=javascript)

C3maLi avatar Jan 21 '20 11:01 C3maLi

Yes, take a look at this example https://apexcharts.com/javascript-chart-demos/column-charts/basic/

junedchhipa avatar Jan 21 '20 11:01 junedchhipa

Thanks for your return,

The sample you provided does not exactly meet what I want. I want to show it as a group. I have 2 data series and I want to show them in a single tooltip. I want to see the information of two data series in the tooltip when I do column hover instead of hovering to each bar.

I'm make the image below by making the chart type line, making the series types column and using the custom template. But this is not a very health situation.

For example;

Untitled

C3maLi avatar Jan 21 '20 12:01 C3maLi

Try

tooltip: {
  shared: true
}

junedchhipa avatar Jan 21 '20 12:01 junedchhipa

Try

tooltip: {
  shared: true
}

Thank you, is working (:

C3maLi avatar Jan 21 '20 12:01 C3maLi

I'm disturbing again

When I activate the shared tooltipe feature, the tooltip header appears in the column without data. It is not shown only because it has no content.

I want to hide the tooltip when two data series are empty. Is it possible to do this dynamically?

Sample; y: { formatter: function (val, data) { data.w.config.tooltip.enabled = false; } } (not working!) Untitled

C3maLi avatar Jan 23 '20 11:01 C3maLi

Seems like a bug. I will take a look soon.

junedchhipa avatar Jan 23 '20 12:01 junedchhipa

I encounter a situation like this is it normal?

I have a 2 legend, no problem appears when both of them are active. When I passive my first legend, all the series in the data set that is in the 2nd legend are displayed as "null" and only the tooltip appears on the chart.

I am encountering this situation when shared: true.

You can see more detailed from the image below. apexchart

C3maLi avatar Jan 24 '20 07:01 C3maLi

Can you please post a codepen demo to reproduce it easily on my side?

junedchhipa avatar Jan 24 '20 07:01 junedchhipa

Here you can check it, when you make Legend 1 passive, you can see the problem I mean.

https://codepen.io/CemaLi/pen/jOEJOLr

C3maLi avatar Jan 24 '20 07:01 C3maLi

tooltip: { shared: true } is not working in custom tooltip

AshwinidBawankar avatar Feb 09 '23 09:02 AshwinidBawankar

for anyone who land here with the same issue, I was able to fix this with below settings for tooltip. Apparently I had to explicitly set intersect to false along with shared set to true

tooltip: { shared: true, intersect: false }

mnkcoder avatar Oct 08 '23 03:10 mnkcoder