Bar chart

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Felix
Posts: 72
Joined: Tue Oct 29, 2013 8:10 am

Bar chart

Post by Felix » Mon Jun 16, 2014 7:03 am

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
Bar Chart
BarChart.png (13 KiB) Viewed 7378 times

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Bar chart

Post by ArctionPasi » Mon Jun 16, 2014 12:57 pm

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.
LightningChart Support Team, PT

Felix
Posts: 72
Joined: Tue Oct 29, 2013 8:10 am

Re: Bar chart

Post by Felix » Tue Jun 24, 2014 12:50 pm

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?
BarChart1.png
BarChart1.png (11.57 KiB) Viewed 7340 times

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Bar chart

Post by ArctionPasi » Tue Jun 24, 2014 8:56 pm

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 ;)
LightningChart Support Team, PT

Post Reply