rufus2 Posted October 9, 2008 Share Posted October 9, 2008 Hi everyone - does anyone know of a way to remove the border from the chart legend? I see how to change the fill and text color, but I don't see anywhere about changing the color of the border around the chart legend (or for that matter, removing the border altogether).Thank you for your help,R^2 Link to comment Share on other sites More sharing options...
svenn Posted October 9, 2008 Share Posted October 9, 2008 Jasper Report only allows access to some of the properties of JFreeCharts which is the package it uses to generate the charts. What you can do is create your own class that extends JRAbstractChartCustomizer. You can then access and modify chart values in this class. To understand how do a search to look at the various discussions on this topic. Link to comment Share on other sites More sharing options...
rufus2 Posted October 9, 2008 Author Share Posted October 9, 2008 Svenn - thanks for the tip - I'll take a look the chart customizer and see if I can get it to work. R^2 Link to comment Share on other sites More sharing options...
vikas_as Posted September 20, 2011 Share Posted September 20, 2011 Legend border can be removed by using the chart object and setting the legend's border to 0 in the customizer classCode:if(chart.getLegend()!=null) { chart.getLegend().setBorder(0.0, 0.0, 0.0, 0.0); } Link to comment Share on other sites More sharing options...
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 accountSign in
Already have an account? Sign in here.
Sign In Now