【发布时间】:2015-06-17 06:37:53
【问题描述】:
我一直在试图弄清楚是否可以为每个条形/线形标记设置准确的值。
当前结果:
期望的结果:
【问题讨论】:
-
不可能。不过,我为它添加了一个功能请求!
标签: java graph charts knowm-xchart
我一直在试图弄清楚是否可以为每个条形/线形标记设置准确的值。
当前结果:
期望的结果:
【问题讨论】:
标签: java graph charts knowm-xchart
在 Xchart 库中,使用注释来获取每个条的计数。
CategoryChart chart = new CategoryChartBuilder()
.yAxisTitle("ABC Title")
.theme(Styler.ChartTheme.GGPlot2).build();
//each stack count and total count of each bar
chart.getStyler().setHasAnnotations(true);
chart.getStyler().setShowTotalAnnotations(true);
chart.getStyler().setAnnotationsPosition(1);
【讨论】: