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

Consistent Style of Charts - Skinning

5 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 04 Nov 2011, 05:29 PM
We are creating many charts.  I would like them to have a consistent look to them. 
Using a built-in skin seems like it would work, however I ran into the problems with the skin overwriting properties I manually set.  (I saw another thread regarding that issue too).
Not all the charts will be the same type (bar, pie, etc), yet I would like them to have the same series colors, backgrounds, fonts, labels.

What is the easiest way to apply a consistent look to all the graphs? 

5 Answers, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 09 Nov 2011, 09:00 AM
Hello Shawn,

After applying a skin you need to set the SkinsOverrideStyles property to False. This way your customization changes will take effect.

Setting the color of a line series for example can be achieved like this:
line4.Appearance.FillStyle.MainColor = System.Drawing.Color.Green;

More about styling the chart can be found in our hep topics here:
http://www.telerik.com/help/aspnet-ajax/radchart-styling-skinning-example.html
http://www.telerik.com/help/aspnet-ajax/radchart-styling-elements.html

All the best,
Peshito
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Shawn
Top achievements
Rank 1
answered on 09 Nov 2011, 03:28 PM
I am not seeing that Property in the Report Designer or in the codebehind intellasense for the Chart.  I am using Reporting 2011 Q2.
0
Peshito
Telerik team
answered on 14 Nov 2011, 12:06 PM
Hello Shawn,

Since you have set a Product: RadChart for ASP.NET AJAX in your ticket my previous post  was intended to help you for this technology.
Please, take a look at the following blog post in our code library. It describes how to apply custom theme for Reporting:
http://www.telerik.com/community/code-library/reporting/general/applying-custom-skin-to-the-web-report-viewer.aspx

All the best,
Peshito
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Shawn
Top achievements
Rank 1
answered on 14 Nov 2011, 04:02 PM
Peshito,

I do not belive I created a ticked.  I simply posted to the Reporting forum.  Are you able to change the ticket and route the the appropriate person?

My issue does not involve skinning the report viewer.  I belive the link you provided is applicable to that rather than my issue.
0
Steve
Telerik team
answered on 17 Nov 2011, 05:28 PM
Hello Shawn,

Sorry for the created confusion. Unfortunately although the chart item in Telerik Reporting is based on RadChart for ASP.NET AJAX, they differ in some aspects and the chart item does not have SkinsOverrideStyles property.

When styling the chart item, you must take in consideration the following:

  • Chart's Skin - This is with high priority for Chart style (Chart&Series font, Chart&Series borders and etc.);
  • Series Palette - This is second priority after Skin for Series Style(Series font, Series borders and etc.). If Chart's Skin is set it will overwrite Series Palette customizations;
  • Series(Collection) Appearance - This is with third priority after Series Palette. Here for every chart series you can set font, border and etc. If some of the above properties are applied they will overwrite Series Appearance.
  • Custom Palettes - This with forth priority after Series(Collection) Appearance. If some of the above properties are applied they will overwrite the Custom Palettes
So in your case when you made customizations on top of the skin you have chosen, the changes will not appear at runtime despite the fact they are shown at design time.

Greetings,
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
Shawn
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Shawn
Top achievements
Rank 1
Steve
Telerik team
Share this question
or