在显示堆叠条形的鼠标悬停所有系列的值(ASP.NET图) [英] Show all series' values in stacked bars mouseover (ASP.NET CHART)
问题描述
我使用asp.net图表控件以present堆叠酒吧图。
I'm using the asp.net Chart control to present a stacked bars chart.
我可以用这个code创建一个自定义的鼠标悬停提示:
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.
例如:
我有2个系列(有偿和无偿的)组成的图表中单列。当我将鼠标放置到任何的系列,我想说明两者的价值滑鼠悬停系列,但也包含在那个特定的堆积列等系列。
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?
推荐答案
我们还使用堆积条形图 - 我们通过点击功能,为用户钻到每个系列组成每个点的数据:我们用的东西这样每个数据点上。
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;\"";
这篇关于在显示堆叠条形的鼠标悬停所有系列的值(ASP.NET图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!