Neoteny Posted July 20, 2007 Report Share Posted July 20, 2007 Using Chart.ClearData ClearDataFlag_ColorsAndPatterns I can reset all colors to their palette defaults, with the exception of Chart.BackColor. This seems an omission (bug) to me. Link to comment Share on other sites More sharing options...
JuanC Posted July 20, 2007 Report Share Posted July 20, 2007 Actually ClearDataFlag_ColorsAndPatterns is a constant we inherited from previous versions where the colors and patterns were kept on a separate array so using this flag meant you wanted to free that memory. ChartFX 6.2 (both .NET and COM) ignore this flag so the reset of the other colors is probably being caused by the use of other flags (e.g. ClearDataFlag_PerSeriesAttributes). To reset the back color - I am guessing you may also want to reset the inside color as this is also modifiable by the user - you would have to this Chart1.BackColor = Chart1.ColorFromArgb(0, 0, 0, 0) Chart1.InsideColor = Chart1.ColorFromArgb(0, 0, 0, 0) Please note that you will need an updated version for this code to work, internally we we know when a color is set to empty but before there was no way for you to create an "Empty" color. Newer builds will assume an empty color when you use ColorFromArgb with all parameters set to 0. JuanC Link to comment Share on other sites More sharing options...
Neoteny Posted July 26, 2007 Author Report Share Posted July 26, 2007 What do you mean by 'updated version'. I did download the latest service pack, but the color setting didn't work. How can I get a version that does include this feature? Link to comment Share on other sites More sharing options...
JuanC Posted July 30, 2007 Report Share Posted July 30, 2007 Please send an email to support at softwarefx dot com, we have a hotfix that includes the color issue but this has not been included in our service pack yet. JuanC Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.