I use Jfreechart’s bar chart to show data. But in case all data is 0, the axis line will be displayed in middle of chart. I just want to display the axis line in bottom as usual cases.
How can I configure it? Thanks!
I use Jfreechart’s bar chart to show data. But in case all data is
Share
Assuming a
DefaultCategoryDatasetfor example, use theclear()method when all values are sufficiently close to zero that you want to display no data. Alternatively, usesetRangeWithMargins()when a specific range would be more meaningful.