Uploaded image for project: 'Lucee Development'
  1. LDEV-1350

cfchartseries throws exception on empty query cells

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.4.19
    • Fix Version/s: Chart 1.0.19.24, 5.2.3.12
    • Labels:
    • Environment:

      Appears on Linux (Redhat) and MacOS (Darwin)

    • Sprint:
      May-June 2017 Sprint, July 2017 Sprint

      Description

      I am using release 5.14.19 (upgraded from version 5.1.1.65).
      With this release, cfchartseries is no longer able to process empty value columns in a query.
      In addition, it seems as if the cfscript-syntax for cfchart is also not working anymore.

      Here is an example, where the first chart shown and the second (with missing value) not:

      <cfoutput>
      <cfscript>
          q1 = queryNew("label,value");
          q1.addRow();
          q1.setCell("label","value1");
          q1.setCell("value","10");
          q1.addRow();
          q1.setCell("label","value2");
          q1.setCell("value","12");
          q1.addRow();
          q1.setCell("label","value3");
          q1.setCell("value","18");
          writeDump(q1);
      </cfscript>
      <cfchart format = "png"  title = "Good Chart">
          <cfchartseries type = "line"  query=#q1#  valueColumn="value" itemColumn="label" />
      </cfchart>
      <cfscript>
          q2 = queryNew("label,value");
          q2.addRow();
          q2.setCell("label","value1");
          q2.setCell("value","10");
          q2.addRow();
          q2.setCell("label","value2");
          q2.addRow();
          q2.setCell("label","value3");
          q2.setCell("value","18");
          writeDump(q2);
      </cfscript>
      <cfchart format = "png"  title = "Bad Chart">
          <cfchartseries type = "line"  query=#q2#  valueColumn="value" itemColumn="label" />
      </cfchart>
      </cfoutput>
      

        Attachments

          Activity

            People

            • Assignee:
              21solutions Igal Sapir
              Reporter:
              lhueper lhueper@tecracer.de
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: