Add a “Target Line” to a Coldfusion 8 CFChart Bar Graph

為{幸葍}努か 提交于 2019-12-02 07:32:29

问题


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?

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

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


回答1:


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

ie Using the <limits> element

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


来源:https://stackoverflow.com/questions/9813386/add-a-target-line-to-a-coldfusion-8-cfchart-bar-graph

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!