问题
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