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

Formatting changes for charts in designer not shown in Preview

3 Answers 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dhananjay
Top achievements
Rank 1
Dhananjay asked on 16 Nov 2011, 02:26 AM
Hello,
I'm trying to format chart plot area using properties windows, it allows me to change the margins and also shows the changes in the designer, however whenever i do Preview/HTMLPreview or even run the report in ReportViewer, it changes everything back to default, as if there is some parameter which is overriding the settings i'm doing in designer. I've also tried to make the PlotArea-->Appearance-->Dimensions-->AutoSIze as False. Also I made the Appearance-->Dimensions-->AutoSIze as False, however nothing is working. Please let me know if I'm doing anything wrong and how the design changes will reflect in runtime.

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Nov 2011, 10:54 AM
Hi Dhananjay,

Make sure the chart.AutoLayout property is set to false as it affects the global layout of the chart, thus overriding your changes.

Kind regards,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
Dhananjay
Top achievements
Rank 1
answered on 17 Nov 2011, 07:24 PM
The chart.AutoLayout property was set to False, still it was resetting the design changes in runtime. Anyways, since I could not correct the chart I had to remove it and add a new chart and do the changes to the margins and that seemed to work. I could not find out the difference between the properties of old chart which I removed and new chart which I added.
0
Steve
Telerik team
answered on 18 Nov 2011, 11:29 AM
Hi Dhananjay,

Applying Skin to the chart could cause such a problem as well. To avoid this you can :
  1. Reset the Skin property and change the appearance yourself.
  2. Set the skin and then set the margins manually in the code-behind after the InitializeComponent() in the constructor.
    Copy Code
    public Report_FFGA_Chart1()
          {
              InitializeComponent();
              chart1.PlotArea.Appearance.Dimensions.Margins = new ChartMargins(0, 0, 0, 0);
          }

All the best,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

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