I found more details to the weird problem that I am having. Before I begin, please go to http://www.monteandjanicechan.com/chart_good.jpg. This is how I my report to come up. On the x-axis, there will always be three items as long as at least one of them has values. If an item does not have any values (i.e. 2010), there would not be a marker in the chart.
The problem occurs only when only one item has value. Please see http://www.monteandjanicechan.com/chart_bad.jpg. As you can see, 2008 and 2010 do not have any values; y-axis is now scaled from 0 to 100. I have tried setting one of the items (ex. 2008) a value of 0 or something off the chart; it would scale according to this off-the-chart value and the 2009 value. In short, I have to have at least two items with values between 20 and 100 in order for cfchart to scale from 20 to 100. My question is, how can I correct the issue so that cfchart would ALWAYS scale from 20 to 100? Thanks in advance, Monte > Hi all, > > I have the following codes in my page. > > The style variable holds the custom style. The custom style is quite > big and I am not going to post all the codes here unless I absolutely > have to. > > <cfchart chartheight="450" chartwidth="550" gridlines="9" > yaxistitle="Score" scalefrom="20" scaleto="100" style="#style#" > format="png" > > <cfchartseries query="variables.chart_query" type="scatter" > seriescolor="##000000" itemcolumn="MyItem" valuecolumn="MyScore"/> > </cfchart> > > The strange thing is, when there are two or more MyScore values, the > chart displays as expected. However, when there is only 1 MyScore > value, the chart would show 0 to 100 in the y-axis. It would still > show 9 grid lines but these lines are displayed from 0 to 100 instead > of from 20 to 100. > > Does anyone know why this is happening? I am running CF 9 on WinXP on > my local box. > > Thanks in advance, > Monte ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333272 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm