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

Y axis 100% cramps values

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 17 Aug 2011, 04:01 AM
Hi, when charting values up to 100% we initally had the Y axis going up to 120%.
Once this was resolved we had a Y with 100%, however the data being plotted is often at or around 100% and so the labels on both our column and line graphs are being cut off (because there is no room above the plot for the "100%" or the "99.95%" to be displayed.

image attached

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Aug 2011, 12:54 PM
Hi Steve,

This is probably caused by making the label bold. Anyway you can correct this by:
  • changing the label location to inside and change the AlignedPosition of the label as well e.g.
    chartSeries1.Appearance.LabelAppearance.LabelLocation = Telerik.Reporting.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside;
    chartSeries1.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Reporting.Charting.Styles.AlignedPositions.Center;
    chartSeries1.Appearance.LabelAppearance.Position.Auto = false;
  • changing the label location to inside and applying padding to the label to fix it to a specific position:
    chartSeries1.Appearance.LabelAppearance.LabelLocation = Telerik.Reporting.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside;
    chartSeries1.Appearance.LabelAppearance.Dimensions.Paddings = new Unit(10, UnitType.Pixel);

Kind regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or