开发者

Customize subtitle position - JFreeChart

开发者 https://www.devze.com 2023-03-24 21:02 出处:网络
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.

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 on these images:

Customize subtitle position - JFreeChart

http://i.stack.imgur.com/AmPJ8.jpg

and

Customize subtitle position - JFreeChart

http://i.stack.imgur.com/VBfvL.jpg.

I just tried almost everything and cannot do this.

I am using subtitle insted of legend, because legend is presented with a red square, indicating the color of the series shown on the graphics.

Thanks in advance!

Joey


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));

Customize subtitle position - JFreeChart

0

精彩评论

暂无评论...
验证码 换一张
取 消