Hello Pasi,
how can I create the bar graph as shown in Figure?
It is possible in the X-axis indicate a text?
Bar chart
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Bar chart
You can use CustomAxisTicks for X axis, which allows any text or numbers on them. Or use FormatValueLabel event handler for the X axis.
Use separate BasSeries object for each bar, because they or of different colors.
Use separate BasSeries object for each bar, because they or of different colors.
LightningChart Support Team, PT
Re: Bar chart
Hello Pasi,
thanks for the answer.
But I have another question, how can I specify that the title of the bars is not painted over the corner?
thanks for the answer.
But I have another question, how can I specify that the title of the bars is not painted over the corner?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Bar chart
Hi Felix,
set barSeries.LabelStyle.Outside = false, and set barSeries.LabelStyle.Offset.Y = -15. Then it clips inside the graph, and the label is above the bar.
That should be it
set barSeries.LabelStyle.Outside = false, and set barSeries.LabelStyle.Offset.Y = -15. Then it clips inside the graph, and the label is above the bar.
That should be it
LightningChart Support Team, PT