Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Tooltip for box chart
posted

Hi,

I want to show the median value of a boxchart when I move the cursor over the chart (with tooltip). Even better would be all values (max,thirdQuantil,median,firstQuantil,min) seperated by comma. I only get the max value (in your running sample you display the min value as tooltip, I have also seen a version of your running sample with the median value).

part of my code:

System.Data.DataTable chartData = new System.Data.DataTable();

chartData.Columns.AddRange(new DataColumn[ { new DataColumn("Name", typeof (string)), new DataColumn("max", typeof (double)), new DataColumn("thirdQuantil", typeof (double)), new DataColumn("median", typeof (double)), new DataColumn("firstQuantil", typeof (double)), new DataColumn("min", typeof (double)), });

.......

chartData.Rows.Add(description, median.Max, median.ThirdQuantil, median.MedianValue, median.FirstQuantil, median.Min);

.......

ucProcessBoxPlot.Data.DataSource = chartData;

ucProcessBoxPlot.Data.DataBind();

......

ucProcessBoxPlot.Tooltips.Display = TooltipDisplay.MouseMove;

ucProcessBoxPlot.Tooltips.FormatString = "DATA_VALUE:0.#";

ucProcessBoxPlot.Tooltips.Format = TooltipStyle.DataValue;

Thank's for any hint...

Best Regards Georg