User (Legacy) Posted February 9, 2006 Report Posted February 9, 2006 Hi, I notice that Chart has a Palette property that we can set its palette to one the predefined palette names (Windows, EarthTone...). I would like to get the list of actual colors in the currently selected palette. Thank you, Ming
Software FX Posted February 10, 2006 Report Posted February 10, 2006 A palette consist of two things: 1) A list of colors 2) Specification on how these colors are assigned to different chart elements such as series, titles, labels, etc. What exactly do you need. -- Francisco Padron www.chartfx.com
User (Legacy) Posted February 17, 2006 Author Report Posted February 17, 2006 Here is my delima, when I create a pie chart, ChartFX assigns color for each slice on the chart. Case 1: my pie chart has 3 slices: Apple, Orange and Banana. ChartFX would assign: blue for Apple, green for Orange and red for Banana. Case 2: I create another pie chart with one slice: Banana. ChartFX would assign: blue for Banana As you see, Case 1 and Case 2 the colors for Banana are different. But I want them to be the same. If I get that list of _default_ colors, I could manually assign the right color for Banana. Yes, I can create my own default colors but it would not be the same as the chart's default. And this is also important because user can change the default palette. Thanks again, Ming "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:%23DM9gioLGHA.1888@webserver3.softwarefx.com... > A palette consist of two things: > > 1) A list of colors > 2) Specification on how these colors are assigned to different chart > elements such as series, titles, labels, etc. > > What exactly do you need. > > -- > Francisco Padron > www.chartfx.com > >
Software FX Posted February 17, 2006 Report Posted February 17, 2006 Ok. This is easy, simply get: At any time you can ask for : Color color = chart1.Point[i].Color; To obtain the color used for a specific point under the current palette. -- Francisco Padron www.chartfx.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.