david212005 Posted February 21 Share Posted February 21 How to change the width of the series in a chart so that they don't come out so thin Link to comment Share on other sites More sharing options...
rpachipu Posted February 22 Share Posted February 22 Hi David, If its of type high charts, you can add advance property plotOptions.series.pointWidth to30. If its a Jfree chart, you need to create a barchart customizer class to control width of bar chart and use the setMaximumBarWidth attribute CategoryPlot categoryPlot=chart.getCategoryPlot(); BarRenderer renderer=(BarRenderer)categoryPlot.getRenderer(); renderer.setMaximumBarWidth(.30); //Set maximum width of barchart to 30 percent Link to comment Share on other sites More sharing options...
david212005 Posted February 22 Author Share Posted February 22 The thing is that I am using jaspersoftreport so I have no idea where or how those properties are used. Can you give me some advice for this? Link to comment Share on other sites More sharing options...
david212005 Posted February 22 Author Share Posted February 22 Maybe using these properties is not possible? Link to comment Share on other sites More sharing options...
rpachipu Posted February 22 Share Posted February 22 (edited) The below are the basic and professional charting libraries available. Seems you are using basic charts, for this you need to write chart customizers to implement that. You can find samples of chart customizers in the below: https://github.com/TIBCOSoftware/jasperreports/tree/6.21.0/jasperreports/demo/samples/chartcustomizers Edited February 22 by rpachipu 1 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