Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
TMc #1
CFMX7 Chart scaling bug
This post was originally part of another thread. But there's been no response
from MM there, so I'm reposting it as a new topic, since it seems fairly
certain that it's not a 'user' issue. My development server is running CFMX7,
and I have not had a chance to test this on 6.1, so I'm not absolutely sure if
the issue is related to the CF version. However, I'm pretty sure it is
CFMX7-specific. 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? Thanks, Tom McNeer
TMc Guest
-
stacked Bar chart/Line chart hybrid- Charting
Hi all, I have a requirement to have a stacked bar graph, with a line graph on the same chart. Has anyone here done this before? Apparently there... -
Refreshing chart data doesnt update chart
I must be missing something simple here. I have a column chart that is using an array for its dataprovider. However, when I update the underlying... -
Automate CFMX7 Admin similar to silent CFMX7 Installer
I've successfully used an installation configuration file to automate the Cold Fusion MX7 software installation. I saw the discussion about how... -
Error in DBD::Chart (called from DBIx::Chart)
I'm receiving this error message when I run a PERL script: Use of uninitialized value in string ne at C:/Perl/site/lib/DBD/Chart.pm line 2491. ... -
Windows 2000 CFMX7 /CFIDE/administrator quit working (ittimes out) What is the real fix short of restarting CFMX7?
I upgraded from ColdFusion 5 to ColdFusion MX 7 standard edition on a Windows 2000 test server (with Apache 1.3.x and MySQL 4.0.x). I have hot fix 2... -
csecord #2
Re: CFMX7 Chart scaling bug
Same problem here. A chart with scaleFrom=0 scaleTo=1000 Data values are all between 0 and 900. cfchart draws gridlines from -50 to 10000. This chart worked fine under MX6.1
csecord Guest



Reply With Quote

