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

Overriding Chart Skin Series Colour

1 Answer 50 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Gang Xue
Top achievements
Rank 1
Gang Xue asked on 06 Feb 2009, 04:56 PM

Hi,

I am trying to set some customised colours to the chart series by using the following code:

 

baseHourSeries.Appearance.FillStyle.MainColor = System.Drawing.Color.Red;

 

baseHourSeries.Appearance.FillStyle.SecondColor = System.Drawing.Color.Red;

 

 

But it seems that the default colour scheme of the skin I am using is overriding my settings. The strange thing is some colours I set are shown, such as red and yellow, while others like blue or green are hidden away. Is there any flag or property I need to set to make my settings effective?

One more bigger question: It seems that a Chart skin is quite different from the skins of other Telerik controls. How can I disable the built-in skins and create my own customised ones?

Thank you very much for your help.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 09 Feb 2009, 09:02 AM
Hi Gang Xue,

Please, make sure you have set baseHourSeries.Appearance.FillStyle.FillType to Telerik.Charting.Styles.FillType.Solid. Then you will only need to set the MainColor property.

As for skinning the chart - you will need to adjust the appearance to a single chart. Then you can export the settings to an external file and use it to load the settings. You can find more details here.

Sincerely,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Gang Xue
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or