0 Replies Latest reply on Sep 3, 2009 7:14 AM by KingJimbo

    Mixing Area and Scatter CFChartSeries No Longer Works in CF8

    KingJimbo

      I have had a report that plots a ratio for several customers.  It then plots the results on a chart that has a big green band on it (getting in the green is good).

       

      I did this by mixing two area chart series with one scatter plot.  It worked OK for a while, but now that CF8 is out, it doesn't appear to work any more.

       

      The scatter points bend the green band (and extras get added) on CF8 servers.  On the CF7 server things appear to work as normal.

       

      Here is a simplified version of my code:


      <cfoutput>
        <cfchart chartwidth="600"
                   chartheight="300"
                   seriesplacement="default"
                   sortxaxis="yes"
                   databackgroundcolor="white"
                   xAxisTitle="X"
                   xAxisType="scale"
                   showXGridlines="no"
                   showYGridlines="no"
                   yAxisTitle="Ratio"
                   markerSize="7"
                   showLegend="no"
                   format="png">

              <!--- Plot the points of the scatter plot. --->
              <cfchartseries type="scatter"
                             seriesLabel="Your Ratio"
                             seriesColor="red"
                             markerStyle="circle">

                  <cfchartdata item="5" value="12">
                  <cfchartdata item="2" value="8">

              </cfchartseries>


              <!--- Create a white band to blot out the bottom of the green area chart --->
              <cfchartseries type="area"
                             markerstyle="rectangle"
                             seriesColor="white"
                             seriesLabel="">

                  <cfchartdata item="0" value="5">
                  <cfchartdata item="10" value="15">

              </cfchartseries>

              <!--- Create a green area chart. --->
              <cfchartseries type="area"
                             markerstyle="rectangle"
                             seriesColor="green"
                             seriesLabel="">

                  <cfchartdata item="0" value="15">
                  <cfchartdata item="10" value="25">

              </cfchartseries>

          </cfchart>
      </cfoutput>

       

      Here is the result in CF8:

      GraphData8.cfm

      See the extra scatter points located at 0 and 10?  Notice how the green band seems to bend at the points 2 and 5?

       

      Here is the result in CF7

      GraphData7.cfm

      Only the two scatter points show up.  The green band is nice and straight.

       

      Any ideas?