CFMX7 Chart scaling bug

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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. ...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139