Page 1 of 1

Bar chart

Posted: Mon Jun 16, 2014 7:03 am
by Felix
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 7402 times

Re: Bar chart

Posted: Mon Jun 16, 2014 12:57 pm
by ArctionPasi
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.

Re: Bar chart

Posted: Tue Jun 24, 2014 12:50 pm
by Felix
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 7364 times

Re: Bar chart

Posted: Tue Jun 24, 2014 8:56 pm
by ArctionPasi
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 ;)