in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Change Default Colour Palette

Last post 10/28/2008 7:56 PM by John Fletcher. 4 replies.
Page 1 of 1 (5 items)
Sort Posts:
Previous Next
  • 10/22/2008 12:47 PM

    Change Default Colour Palette

    Hi,

    Is there any way to change the default colour palette for a chart diagram?  I see that the default is orange, green, red (repeat colours with varying intensities).  I'd like to change this on a global chart basis without having to explicitly set the colour for each series...

    Thanks,

    John

  • 10/27/2008 7:34 AM In reply to

    Re: Change Default Colour Palette

    Hi John,

    You can customize the AppearanceName, PaletteName and PaletteBaseColorNumber properties of your chart. Does this meet your requirements?

    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
  • 10/27/2008 9:23 AM In reply to

    Re: Change Default Colour Palette

     Thanks for the response.  Yes, the Palette information is fantastic - setting the PaletteName from the Palettes class is just what I was looking for (plus, being able to register my own Palette if necessary is great).  Regarding the AppearanceName property - what are the possible values?  It looks from the documentation like it controls the gradient, hatch, etc. appearance of the chart but I can't find an enumeration anywhere of what it's looking for...

    Thanks,

    John

  • 10/28/2008 7:48 AM In reply to

    Re: Change Default Colour Palette

    John,

    Glad to hear that it helps you Smile

    As for the AppearanceName, it defines the overall look of a chart (e.g. the fill style of its panes, the width and color of axes, etc.) based on the built-in presets. These  appearances are stored in the chart's appearance repository, whose elements can be viewed by using the chart's GetAppearanceNames method. When the required value is assigned to the AppearanceName property, the appropriate properties of the chart's elements are set to empty values. This means that you can either assign a different palette to the chart's series or further customize the required chart's elements.

    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
  • 10/28/2008 7:56 PM In reply to

    Re: Change Default Colour Palette

    Thanks for the help George - I appreciate it!

Page 1 of 1 (5 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED