Hello NG,
i want to create a stacked barchart, everything is working fine, by now i have only one problem. I use the option "Show data values on chart". But I don't want to show the actual value of the part of the scatterchart but the value of the subpart of the barchart.
Here a small example of what I mean, hopefully it becomes clear as english is not my native language ;-)
I want to replace the datavalues with following values
Thanks in advance for your help.
Stefan
You can do this with a custom label renderer:
Hashtable labelHash = new Hashtable();labelHash.Add("CUSTOM", new LabelRenderer());UltraChart1.LabelHash = labelHash;UltraChart1.ColumnChart.ChartText[0].ItemFormatString = "<CUSTOM>";
class LabelRenderer : IRenderLabel{ public string ToString(Hashtable context) { double cumulativeValue = (double)context["DATA_VALUE"]; double currentValue = (double)context["DATA_VALUE_ITEM"]; return cumulativeValue - currentValue + " - " + cumulativeValue; }}You can find more about using IRenderLabel here:
http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Chart_Customize_Labels_Using_the_IRenderLabel_Interface.html