pentaho报告:散点图的后处理脚本在轴上显示限制(静态值)

时间:2017-02-27 10:06:57

标签: charts

ScatterPlot with limit intersection

我需要生成Scatterplot图表,其中包含x和y轴的限制,如Pentaho Report Designer中的附加图像所示。 由于在散点图下没有可用的选项来显示限制线,我试图通过图表中的后处理脚本来实现。但是无法实现。 请帮助在Pentaho Report Designer图表中达到上述要求。

1 个答案:

答案 0 :(得分:0)

以下是绘制线条的方法。使用的脚本语言是Groovy。

import org.jfree.chart.plot.ValueMarker;

def marker = new ValueMarker(100);
def plot = chart.getPlot();
plot.addDomainMarker(marker);