我有一个包含值和月份的表格我希望条形图的类别部分包含有值的月份,并显示没有值的月份,换句话说,如果一月有一个值,则显示条形,如果没有,则只显示月份名称,但没有栏。我的条形图仅显示具有值的月份。我是碧玉图表的新手,我们将不胜感激。请检查我的源脚本:
<categorySeries>
<seriesExpression><![CDATA["Low Severity"]]></seriesExpression>
<categoryExpression><![CDATA[$F{mth}.intValue() == 1 ?
"January" :
$F{mth}.intValue() == 2 ?
"February" :
$F{mth} == 3 ?
"March" :
$F{mth} == 4 ?
"April" :
$F{mth} == 5 ?
"May":
$F{mth} == 6 ?
"June" :
$F{mth} == 7 ?
"July":
$F{mth} == 8 ?
"August":
$F{mth} == 9 ?
"September":
$F{mth} == 10 ?
"October":
$F{mth} == 11 ?
"November":
$F{mth} == 12 ?
"December":""]]></categoryExpression>