我想在 JFree BarChart 上包含一个 PieChart 子图。这个想法是表示图表中包含多少项目与项目总数,以查看长尾有多长。
您可以在此处查看示例图片。我如何使用 JFreeChart 构建类似的东西?
最佳答案
您可以使用 createBufferedImage()
从任何图表创建一个 BufferedImage
并将其作为 XYImageAnnotation
添加到图表中.
关于java - 如何在 JFree BarChart 中添加 PieChart 子图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8918538/