Hi
I have a pie chart and sometimes the labels can be very long. When they are too long then you dont see the chart. I was wondering if you have some automatic logic that will split the label into multi lines if its too long. I tried the property MultiLine but it didnt change anything.
attached is an example of what happens.
Thanks.
Pie Chart with long labels cannot be seen
Hi qcrnd,
You could use OnGetSeriesMarks to add as "\n" (end of line) as you need. Here there is a simple example that you could easily improve:
You could use OnGetSeriesMarks to add as "\n" (end of line) as you need. Here there is a simple example that you could easily improve:
Code: Select all
void pie1_GetSeriesMark(Series series, GetSeriesMarkEventArgs e)
{
if (e.MarkText.Length > 20)
{
e.MarkText = e.MarkText.Insert(20,"\n");
}
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |