I am trying to format the YAxis and YAxis2 scale as a percentage on a Stacked Bar 100 chart object and it is not working as expected. I am applying the Office 2007 skin to the chart and trying to set the custom formatting after the InitializeComponent method.
Here is my source code:
I aslo want to get rid on the 2.5 increment marker and just have the 10 increment maker in the report. I have marked up the image attached to this post with what I want to accomplish.
Here is my source code:
this
.compareCityAvgReport.PlotArea.YAxis.AutoScale =
false
;
this
.compareCityAvgReport.PlotArea.YAxis.LabelStep = 1;
this
.compareCityAvgReport.PlotArea.YAxis.AddRange(0, 100, 10);
this
.compareCityAvgReport.PlotArea.YAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.ChartValueFormat.Percent;
this
.compareCityAvgReport.PlotArea.YAxis.Appearance.CustomFormat =
"#%"
;
this
.compareCityAvgReport.PlotArea.YAxis2.Visible = Telerik.Reporting.Charting.Styles.ChartAxisVisibility.True;
this
.compareCityAvgReport.PlotArea.YAxis2.AutoScale =
false
;
this
.compareCityAvgReport.PlotArea.YAxis2.AddRange(0, 100, 10);
this
.compareCityAvgReport.PlotArea.YAxis2.Appearance.Color = System.Drawing.Color.Black;
this
.compareCityAvgReport.PlotArea.YAxis2.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.ChartValueFormat.Percent;
this
.compareCityAvgReport.PlotArea.YAxis2.Appearance.CustomFormat =
"#%"
;
I aslo want to get rid on the 2.5 increment marker and just have the 10 increment maker in the report. I have marked up the image attached to this post with what I want to accomplish.