Customize subtitle position - JFreeChart

后端 未结 1 1102
北荒
北荒 2020-12-20 05:56

I want to know if it is possible to put a JFreeChart subtitle in the bottom of the chart, under the chart, and not under the Title.

What I want to do is illustrated

相关标签:
1条回答
  • 2020-12-20 06:55

    In this example, the following TextTitle appears to work.

    chart.addSubtitle(new TextTitle(new Date().toString(),
        new Font("Dialog", Font.ITALIC, 14), Color.black,
        RectangleEdge.BOTTOM, HorizontalAlignment.CENTER,
        VerticalAlignment.BOTTOM, RectangleInsets.ZERO_INSETS));
    

    enter image description here

    0 讨论(0)
提交回复
热议问题