Hello,
<ITEM_LABEL>: <DATA_VALUE:£0,#><ITEM_LABEL>: <DATA_VALUE:£0,#><ITEM_LABEL>: <DATA_VALUE:£0,#>....etc.Ideally stacked like this but comma-separated on the one line if needs be. How would I go about implementing this?
Would I be right in thinking then that this can't be done?
You would have to implement IRenderLabel to get the list of items in the Others slice. You can only get the values this way, but not the individual labels.
Hashtable labelHash = new Hashtable();labelHash.Add("CUSTOMLABEL", new LabelRenderer());this.ultraChart1.LabelHash = labelHash;this.ultraChart1.Tooltips.FormatString = "<CUSTOMLABEL>";class LabelRenderer : IRenderLabel{ public string ToString(Hashtable context) { string label = ""; ArrayList othersList = context["OthersList"] as ArrayList; if (context["ITEM_LABEL"].ToString().Equals("Others") && othersList != null) { foreach (object o in othersList) { label += o.ToString() + "\n"; } } return label; }}
Right, the item labels for the values in the Others slice would need some sort of look up logic and in most cases they can be acquired from the data set.
Thanks very much for this.
When you say "not the individual labels" do you mean the item labels associated with the values? If so I can probably look these up by comparing against the values in the DataSet.
Cheers,