使用 Cfchart 时出错
我是 cfchart,用于在 ColdFusion 中创建图表。我使用了以下代码。我在图表数据中使用变量的值我收到错误
“在第 204 行第 34 列发现无效标记 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>
I am cfchart for creating chart in ColdFusion. I used the following code. I use the value of variable in chartdata I am getting error
"Invalid token c found on line 204 at column 34" i.e. cfchartdata item="0 - 6 Months" value="#count_06#"
Code:
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为您尚未关闭打开的 cfchartseries 标签,
因此请执行此操作
而不是此操作:-
It is because you haven't closed the openning cfchartseries tag
So do this
instead of this:-