Hello,
A client would like to bold the text in the legend of a pie chart for the largest slice. Is this possible?
private void ultraChart1_ChartDrawItem(object sender, Infragistics.UltraChart.Shared.Events.ChartDrawItemEventArgs e){ if (e.Primitive == textPrimitive) { textPrimitive.labelStyle.Font = new Font(FontFamily.GenericSansSerif, 12, FontStyle.Bold); }}
foreach (Primitive p in e.SceneGraph) { if (p.Path!=null && p.Path.ToLower().IndexOf("legend") != -1) { if (p.Row == row) { textPrimitive = e.SceneGraph[e.SceneGraph.IndexOf(p) + 1] as Text; } } }}