Jump to content
Software FX Community

Reg:Marker Color and associated line in ChartFx 6.5


sanjashish

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...