Hi all,
is it possible to set an individual text at the legend in the chart?
By now I just can chose the Series Name, but that is very long and so it take too much place in the chart.
Thanks in advance!
Best regards,
Florian
Legend individual text
-
- Newbie
- Posts: 12
- Joined: Mon Apr 08, 2019 12:00 am
Legend individual text
- Attachments
-
- legend.png (263.56 KiB) Viewed 12318 times
-
- Newbie
- Posts: 12
- Joined: Mon Apr 08, 2019 12:00 am
Re: Legend individual text
Hi all,
is there no solution for this problem?
Thanks in advance,
Florian
is there no solution for this problem?
Thanks in advance,
Florian
Re: Legend individual text
Hello.
I'm not from Steema team but looks like I know what to do - handle GetLegendText event, something like that:
Good luck.
I'm not from Steema team but looks like I know what to do - handle GetLegendText event, something like that:
Code: Select all
private void tChart1_GetLegendText(object sender, GetLegendTextEventArgs e)
{
//some checks (e. g. series index) if you need it
if ((e.LegendStyle == LegendStyles.Series) && (e.Index == 0))
//replace "-" with "" (or do whatever you like with legend text)
e.Text = e.Text.Replace("-", "");
}