Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show all series' values in stacked bars mouseover (ASP.NET CHART)

Tags:

asp.net

charts

I'm using the asp.net Chart control to present a stacked bars chart.

I can create a mouseover custom tooltip using this code:

series.MapAreaAttributes = "onmouseover=\"showTooltip('#VALY');\"";

... which works fine. But I can't seem to find a way to show the rest of the values for the other series in that column.

Example: I have 2 series (Paid and Unpaid) making up a single column in the chart. When I mouseover any of the series, I want to show both the value of the moused-over series, but also the other series contained in that particular stacked column.

Can anyone point me in the right direction?

like image 513
Dynde Avatar asked Dec 31 '25 04:12

Dynde


1 Answers

We're also using stacked bar charts - we have click through functionality, for users to drill into the data making up each point in each series : we use something like this on each data point.

series.Points[index].MapAreaAttributes = "onclick=\"window.opener.location=this.href;window.opener.focus();return false;\"";
like image 120
Jon Spokes Avatar answered Jan 02 '26 20:01

Jon Spokes