I am using JFreeChart and I want to remove the left and right spaces in my waterfall diagram.
JFreeChart
Here's what my diagram looks like right now with red squiggles to demonstrate the space I want to remove.
Any idea how to remove these spaces?
Since ChartFactory.createWaterfallChart() creates an instance of CategoryAxis , just set the appropriate fields:
ChartFactory.createWaterfallChart()
CategoryAxis
CategoryAxis domainAxis = plot.getDomainAxis(); domainAxis.setLowerMargin(0); domainAxis.setUpperMargin(0);
Source: https://habr.com/ru/post/1392416/More articles:java read JDBC connection from XML file - javaThe fastest way to find the sum of decimal digits - c ++Is there a way to determine the default value that should be selected in the form of HTML radio buttons? - htmlHow to detect faster scrolling than triple wheel in Emacs? - emacsThe fastest way to add numbers in numbers - mathHow to remove slashes in formatted JSON data in Mongo using Nodejs? - node.jsHow long does jquery.ready () function? - javascriptSymfony 2 adds Javascripts, just one request - javascriptTwig Assetic Stylesheets among several templates - symfonyImplement object tracking, for example, in Boost :: Serialization - c ++All Articles