Jump to content
JChartFX Community
  • 0
greg.valainis@pa-tech.com

Changing Legend Item Colors

Question

I just changed the colors of the individual pie slices using the following code:


chart1.getPoints().getItem(0,0).setColor("#9bcb3e");

chart1.getPoints().getItem(0,1).setColor("#fbd91d");

chart1.getPoints().getItem(0,2).setColor("#fb5e1d"); 

How can I change the rectangles in the legend to match? 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×