我是用于在ColdFusion中创建图表的cfchart。我使用了以下代码。我在chartdata中使用变量值我收到错误
“第34行第204行找到无效的令牌c”,即cfchartdata item =“0 - 6 Months”value =“#count_06#”
代码:
<cfchart
format="jpg"
xaxistitle="Body Part"
yaxistitle="Claims"
chartheight="500"
chartwidth="1000"
showlegend = "yes"
show3d="yes"
backgroundcolor="##006600"
foregroundcolor="FFFFFF"
>
<cfchartseries
type="bar"
seriescolor="##006600"
seriesLabel="Claims Number"
<cfchartdata item="0 - 6 Months" value="#count_06#"/>
<cfchartdata item="6 Months - 1 Year" value="#count_61#"/>
<cfchartdata item="Over 10 years" value="#count_10#"/>
>
</cfchartseries>
</cfchart>
答案 0 :(得分:3)
这是因为您尚未关闭openning cfchartseries标记
这样做
seriesLabel="Claims Number">
而不是: -
seriesLabel="Claims Number"