在Jaspersoft Heatmap中绘制一条线

时间:2019-04-01 10:47:05

标签: jasper-reports heatmap

我有一份报告的热图表示。现在,我必须在热图中标记阈值,如picture所示。这是要求。

阈值是用户输入的值,可以在每次执行报告时不断更改。

尝试定义此属性。但是没有帮助。

<hc:chartProperty name="yAxis.plotLines">
    <hc:propertyExpression><![CDATA[$V{Variable_1}]]>                                 </hc:propertyExpression>
</hc:chartProperty>


<variable name="Variable_1" class="java.lang.String">
        <variableExpression><![CDATA["(function(){return [{value: " + 80.0/1.0 + ", width: 2, color: 'red', dashStyle: 'solid',label: {style: {color: 'red'},text: '',align: 'right',y: -15,x: 0,verticalAlign: 'bottom',rotation: 0},zIndex: 5}]})()"]]></variableExpression>
    </variable>

有人可以帮忙吗?

谢谢。

0 个答案:

没有答案