How to remove jfreechart chartpanel header space?

Hi, I am new to jfreechart.

I want to remove the space allocated for the title bar of a ruler chart diagram in jfreechart.

Because I need to set the height and width of the chart with a border of 10 pixels of the top panel that holds the chart.

Help me...

Thanks in advance.

enter image description here

In the above graph, I mentioned that at the top of the graph (header space) should be deleted. So I don’t want to leave any place there.

If I did not give any name, this space is required to display this graph.

+3
source share
1 answer

Assign the empty line parameter to the header in Create * **** * Chart ().

Fox example:

final JFreeChart result = ChartFactory.createTimeSeriesChart(
        "",  //Empty title
        "Time", 
        "Value",
        dataset, 
        true, 
        true, 
        false
    );
+3
source

All Articles