Pretty pie charts in JFreechart

前端 未结 2 1168
囚心锁ツ
囚心锁ツ 2021-01-27 09:40

Is it possible to get complex, beautiful colors for pie charts in JFreechart? I mean how can I achieve the colors like the image shown in the link?

Is it possible using

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-27 10:37

    You can use setDrawingSupplier() to supply a custom palette, as shown here, or override lookupSectionPaint() to return any desired Paint, as shown here for getItemPaint().

    You'd have to experiment with the outline stroke to approximate the highlight.

提交回复
热议问题