User (Legacy) Posted June 21, 2005 Report Share Posted June 21, 2005 [using ChartFx for Windows forms v6.2] The sample code at http://support.softwarefx.com/samples/cfxnet6/samples/visualattributes/coloringmarkers.aspx shows assigning independent colours to each marker point by setting the PointAttibutes on each point. How can I set the colour per point, but not change the colour of the lines between each point? For a single series, I want the lines between the points to be the same colour, but the marker points to be different colours. How can this be done? Thanks John Link to comment Share on other sites More sharing options...
Software FX Posted June 21, 2005 Report Share Posted June 21, 2005 What you need to do is use the Border Color to draw the line instead of the Series color, this way you can have your line being a different color from the Marker. Here is how you can do this: chart1.TypeMask &= ~ChartType.ColorLine; // Instruct Chart FX to NOT use the color of the series for the lines but use the border instead // Copy the series color as the border color chart1.Series[0].BorderEffect = BorderEffect.None; chart1.Series[0].BorderColor = chart1.Series[0].Color; chart1.Series[1].BorderEffect = BorderEffect.None; chart1.Series[1].BorderColor = chart1.Series[1].Color; // .. do it for all series // Change the color for a specific point. Now this will not affect the line, only the marker. chart1.Point[0,3].Color = Color.Red; -- 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.