Home › Forums › WinForms controls › Xceed Chart for WinForms › Barseries and Axis Labeling
I am working with Xceed Chart in .net for a prototype.
Therefore i have to make a graph with barseries.
Everything is allright. The only Problem ist, that the PrimaryX shows only the count of datapoints ( 0 1 2 3 4 5), but it should display the years ( 2008 2009 2010 2011)
i add data like this : bar.Add(sum, cyear.ToString());
In an Chart with lineseries i got this with a line.usexvalues …. but there is no function like this for barseries? !
So, my question is how to get the labels from my barseries shown.
Imported from legacy forums. Posted by kjeperti (had 1716 views)
You need to turn off auto labeling on the axis, and provide your own labels, because a BarSeries does not have X values.
StandardAxis.PrimaryX ).DimensionScale.AutoLabels = false;
StandardAxis.PrimaryX ).Labels.Add( “2008” );
StandardAxis.PrimaryX ).Labels.Add( “2009” );
StandardAxis.PrimaryX ).Labels.Add( “2010” );
StandardAxis.PrimaryX ).Labels.Add( “2011” );
Imported from legacy forums. Posted by André (had 1851 views)