User (Legacy) Posted July 28, 2006 Report Share Posted July 28, 2006 Hi, I have just upgraded my projects from using the old version of Chart FX to the new version for Visual Studio 2005. I'm having problems designing a pie chart which has a single series with four points. I am trying to change the colours of the individual points of the chart. I use the following code to maker the change. chart.Points[0, 0].AlternateColor = Color.RoyalBlue; chart.Points[0, 0].Color = Color.DodgerBlue; The problem I am having is that the colour of the point changes but the legend for the point is not updated to reflect the change. For the older version of Chart FX (6.2) I used similar code and it worked fine. chart.Point[0, 0].AlternateColor = Color.RoyalBlue; chart.Point[0, 0].Color = Color.DodgerBlue; Could someone point me in the right direction please? Also, is it possible to change a colour of a point through the designer? Many Thanks Rakesh Link to comment Share on other sites More sharing options...
Software FX Posted July 28, 2006 Report Share Posted July 28, 2006 The correct code is: chart.Points[0].AlternateColor = Color.RoyalBlue; chart.Points[0].Color = Color.DodgerBlue; There is only ONE color key in the legend box per point, regardless of the number of series. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted July 31, 2006 Author Report Share Posted July 31, 2006 Thank You "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:DID%2305lsGHA.2552@webserver3.softwarefx.com... > The correct code is: > > chart.Points[0].AlternateColor = Color.RoyalBlue; > > chart.Points[0].Color = Color.DodgerBlue; > > There is only ONE color key in the legend box per point, regardless of the > number of series. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.