Width of the bar in Jfreechart

前端 未结 4 1822
眼角桃花
眼角桃花 2020-12-09 09:56

Is there a way to adjust the width of the bars in a Barchart?

I create my chart with the following code.

final JFreeChart chart = ChartFactory.create         


        
4条回答
  •  不知归路
    2020-12-09 10:35

    According to Dave Gilbert (JFreeChart Project Leader)

    The bar widths are automatically calculated and will depend on the chart or plot width and the number of items in your dataset.

    See the discussion here.

提交回复
热议问题