4 Answers, 1 is accepted
Our suggestion is to increase the Chart.PlotArea.Appearance.Dimensions.Margins property values.
All the best,Peter
the Telerik team
HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
Telerik.Reporting.Charting.Styles.ChartMargins chartMargins2 =
new
Telerik.Reporting.Charting.Styles.ChartMargins();
chartMargins2.Bottom =
new
Telerik.Reporting.Charting.Styles.Unit(0D, Telerik.Reporting.Charting.Styles.UnitType.Percentage);
chartMargins2.Left =
new
Telerik.Reporting.Charting.Styles.Unit(0D, Telerik.Reporting.Charting.Styles.UnitType.Percentage);
chartMargins2.Right =
new
Telerik.Reporting.Charting.Styles.Unit(0D, Telerik.Reporting.Charting.Styles.UnitType.Percentage);chartMargins2.Top =
new
Telerik.Reporting.Charting.Styles.Unit(0D, Telerik.Reporting.Charting.Styles.UnitType.Percentage);
this
.AvgScorePerQuestionChart.PlotArea.Appearance.Dimensions.Margins = chartMargins2;
When I view the report, the margins are still using the default margin setting. Is there a bug with the setting the properties of the report in the InitializeComponent method?
The problem you've hit might occur if you have set Skin to the chart item, which would override any custom styling and formatting you have applied. If this is the case, please apply the customization properties right after InitializeComponent in the report constructor or remove the chart skin.
All the best,Peter
the Telerik team
HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
Thanks for your help....