Overriding Chart Skin Series Colour

Thread is closed for posting
2 posts, 0 answers
  1. Gang Xue
    Gang Xue avatar
    11 posts
    Member since:
    Jun 2008

    Posted 06 Feb 2009 Link to this post

    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.

  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 09 Feb 2009 Link to this post

    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.
Back to Top