ColdFusion图表x轴标签限制 [英] ColdFusion Chart x-axis label limits

查看:138
本文介绍了ColdFusion图表x轴标签限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 cfchart 标记在ColdFusion中绘制我的折线图

I'm using cfchart tag to draw my line chart in ColdFusion.

我的x轴范围是从1到24,它是所有我的图表的标签的固定数。

My x-axis range is from 1 to 24 and it is fix number of labels for all my charts.

但在我的图表中,我可能有值的第一10(或从1到24的任何固定数)点。

But in my chart, I may have values for first 10 (or any fix number from 1 to 24) points. I mean, my query row count will be 10.

因此,以24个点进行查询将显示完整图形广告查询,其中10个点将显示从0到10的x轴值。但是我想将图表缩放24点,而不考虑查询计数。

So query with 24 points will show full graph ad query with 10 points will show x-axis values from 0 to 10. But I want to scale the chart for 24 points regardless of query count.

cfchart code> scaleFrom 和 scaleTo 来修复y轴系列,x轴系列有任何选项吗?

cfchart has an option called scaleFrom and scaleTo to fix the y-axis series, Is there any option for x-axis series?

下面是一个图表,它应该在x轴上缩放24点(从第10点开始的线不会在那里)。

Following is a chart and it should scale it for 24 points on x-axis (lines from the 10th point will not be there).

<cfchart format="jpg" 
    xaxistitle=""
    yaxistitle="" chartwidth="600" chartheight="120">

    <cfchartseries type="line" paintstyle="shade"
        query="qChart1"  markerstyle="circle"
        itemcolumn="CHARTLABEL"
        valuecolumn="INTCHART1" /> 
</cfchart>

推荐答案

我认为你正在寻找

xAxistype="Scale" scaleMin="1" scaleMax="24"


b $ b

xaxistype通常默认为类别,我相信这只是查询的顺序,但通过设置为缩放(必须是所有的数值),你可以改变这一点。

xaxistype normally defaults to "category" which I believe is simply the query in order, but by setting to "scale" (must be all numeric values) you can alter this.

如果您想要更多自定义格式化图表,请在CF的图表文件夹中启动webcharts.bat并填写您的靴子。

If you are wanting more custom formatting for charts fire up webcharts.bat in the charting folder of CF and fill your boots.

这篇关于ColdFusion图表x轴标签限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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