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

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

问题描述

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

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

ie 使用 <limits> 元素

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

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

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