添加“目标线”到Coldfusion 8 CFChart条形图 [英] Add a "Target Line" to a Coldfusion 8 CFChart Bar Graph

查看:226
本文介绍了添加“目标线”到Coldfusion 8 CFChart条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Coldfusion CfChart条形图,有X轴=问题,Y轴=分数(0-100),但我想做的是在图上添加一个目标得分线,跨越Y轴上的X轴85标记。这是可能的吗?

I have a Coldfusion CfChart Bar Graph, that has X-Axis = Questions, and Y-Axis = Scores (0-100), but what I want to do is add a a Target Score Line on the graph, that goes across the X-Axis at the Y-Axis 85 Mark. Is this possible at all?

我注意到类似的Javascript在这里:如何创建一条线以在条形图中显示阈值

I noticed something similar for Javascript on here: How to create a line to show threshold in bar graph

我只是想知道是否可以在Coldfusion做类似的事情。

I was just wondering if it was possible to do something similar in Coldfusion.

推荐答案

是的,你可以生成背景范围使用定制风格。请参见 CFCHART-Tip - Background-范围

Yes, you can generate background ranges by using a custom style. See CFCHART-Tip--Background-Ranges

即使用< limits> 元素

<frameChart is3d="false">
    <yAxis>
      <limits index="0" min="0" max="85" color="#ff8000"/>
    </yAxis>
</frameChart>

这篇关于添加“目标线”到Coldfusion 8 CFChart条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆