sanjashish Posted July 28, 2009 Report Share Posted July 28, 2009 Hi, I want to have different colors for my marker and associated line for perticular series in chartfx6.5. Can anyone please help me in this regard? Quote Link to comment Share on other sites More sharing options...
RandyJ Posted July 28, 2009 Report Share Posted July 28, 2009 Hi,The flag ChartType.ColorLine (TypeMask property) instructs the chart to use the series color to draw the line between markers instead of using the BorderColor, turning this flag OFF will allow you to control the color of the marker independently from the color of the line.Example:chart1.setTypeMask(chart1.getTypeMask() & ~ChartType.COLOR_LINE);for (int i = 0; i < chart1.NSeries; i++) chart1.getSeries().getItem(i).setBorderColor(chart1.getSeries().getItem(i).getColor()); // Copy series color to BorderColor. You can assign BorderColor to anything you want.chart1.setBorderEffect(BorderEffect.None); // Turn OFF Border efect. Use actual color instead.chart1.getPoint(1,1).setColor(java.awt.Color.ORANGE); // Change color of specific point marker.RegardsRandyJ Quote Link to comment Share on other sites More sharing options...
sanjashish Posted July 29, 2009 Author Report Share Posted July 29, 2009 Thanks It worked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.