My development server is running CFMX7, and I have not had a chance to
test this on 6.1, so I'm sure if the issue is related to the CF
version.

In certain charts, the "scaleto", "scalefrom" and "gridlines" values
are not being used correctly when the chart is generated. I'm aware
that the "scalefrom" and "scaleto" values are modified by the charting
code if they would result in cropping the chart contents, but that's
not the case here.

I'm attempting to display two charts: one works, the other doesn't.

The first has the following atttributes - scalefrom="0" , scaleto =
"1", gridlines="11". The values displayed on the chart are always
decimals <= 1. The chart displays correctly, with Y-axis labels and
gridlines from 0 to 1, in increments of 0.1.

The second chart has its scaling values set dynamically, to present a
compact chart based on making the top of the Y-axis slightly higher
than the largest displayed Y-value. (For instance, if the largest
Y-value is 298, the "scaleto" is set to 300.) The following values
were sent to the <cfchart> tag (I output them elsewhere to verify
them): scalefrom="0", scaleto="300", gridlines="31". This should have
produced a Y-axis running from 0 to 300, naturally, with gridlines at
10,20,30,etc.

The displayed chart, however, ran from -50 to 600, in increments of
50. There were 14 total gridlines, including the axis. No data points
were less than 0, so there was no need for the Y-Axis value to extend
below 0. All data points were displayed in the correct positions - the
highest Y-value was 298, just as it should have been. Only the number
of gridlines and the scaling were incorrect.

I followed up by placing static values into these attributes as a
test, using the same data to create the data points. The results
changed, but were still mostly wrong. Occasionally, the number of
gridlines was correct, but the scaling values continued to be wrong,
although they changed.

For instance, when I hard-coded the following: scalefrom="0",
scaleto="300", gridlines="4",
I got a chart which did, in fact have 4 gridlines. But the scale went
from -200 to 400.

I have also tested this with chart formats of both Flash and JPEG,
with the same results.

Does anyone (MM, perhaps?) have any light to shed on this?
-- 
Tom McNeer
MediumCool
http://www.mediumcool.com
530 Means St NW, Suite 110
Atlanta, GA 30318
404.589.0560

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197165
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to