This is a migrated thread and some comments may be shown as answers.

Label AlignedPosition in Bar Chart

3 Answers 165 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Don Turkstra
Top achievements
Rank 1
Don Turkstra asked on 07 Jun 2007, 07:36 PM

3 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 08 Jun 2007, 11:35 AM
Hello Don,

To put the labels on the X axis, you should manage the whole series instead of the items:
 
chartSeries1.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Bottom; 
chartSeries1.Appearance.LabelAppearance.RotationAngle = 90F; 
 

You can do this through the Property grid as well.

 
Kind regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Don Turkstra
Top achievements
Rank 1
answered on 08 Jun 2007, 01:18 PM
Thanks for the reply... that helps.

The problem that I have now is that some of the labels are being truncated.  For example

chart.PlotArea.YAxis.Appearance.ValueFormat = ChartValueFormat.Currency;

series.Appearance.LabelAppearance.RotationAngle = 90F;
series.Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Center;

2 series, both defined the same with 1 item each.
series 1, the item has a y-value of 2500.
series 2, the item has a y-value of 0.

The $2,500.00 label shows correctly in the center of the bar
The $0.00 displays as $0.0 (missing the last zero).

Any ideas?

Thanks again...

0
Dwight
Telerik team
answered on 11 Jun 2007, 08:59 AM
Hello Don,

Unfortunately, we couldn't reproduce the reported issue. Please, create a simple project exposing the incorrect behavior and send it us in a new support ticket. We will be happy to review it for you.

You can also play with NumberFormatInfo to enforce 2 digits after the decimal point for the currency format.

 
Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (obsolete as of Q1 2013)
Asked by
Don Turkstra
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Don Turkstra
Top achievements
Rank 1
Share this question
or