1 2 Previous Next 50 Replies Latest reply on Apr 17, 2017 4:31 PM by Gary__F Branched to a new discussion.

    ColdFusion 11 Destroyed My Charts

    sdsinc_pmascari Level 2

      Surely we can't be the only ones who are disappointed with the newest charting engine in CF11?  Yes, ZingCharts can be cool and the plethora of style options gives us total freedom to build the perfect chart.  However, that is also the root of the problem!  Since CF8, CFCHART has been adequate for our needs.  It produced good looking chart images and was just flexible enough for us to produce what we needed while staying simple enough for us to put together quickly and move on in development.  This has been true up through CF10....

       

      We just installed CF11 on our test server and it has DESTROYED every chart we produce using the same code we've had in place for years.

       

      Custom chart colors: gone.  Readability: hit or miss.  3D angles and depths: changed.  Proper fitting of images in pages: gone.  Legends specifically told to hide: now showing, and showing incorrectly.  Labels: FUBAR.

       

      What the hell?!  Who was in charge of the backward compatibility of this charting engine?  The least that should have been done was to give us a default style similar to the old one.

       

      Again, we liked the simplicity the old engine gave us.  And, while it would be cool to spend some time with the ZingChart Editor creating super awesome charts, we don't have the time to mess with the minutiae of all the little details for these charts.  But it looks like I have no choice.  So, instead of proceeding with our upgrade to CF11 we have to stop and reconfigure hundreds of CFCHART tags!

       

      Here are some examples of our mangled charts that have had NO CODE CHANGES from CF10 to CF11:

       

      CF10CF11
      CF10_3dBar.PNGcf11_3dbar.PNG
      cf10_3dpie.PNGcf11_3dpie.PNG
      cf10_2dline.PNGcf11_2dline.PNG

       

       

      OK, rant over.  Have to waste time fixing this bullsh*t...

        • 1. Re: ColdFusion 11 Destroyed My Charts
          mike42780 Level 1

          Right there with you.  Going from CF9 to CF11 and all my charts are completely destroyed!  Have to completely redo everything before I can move this into production.  Why Adobe?

          • 2. Re: ColdFusion 11 Destroyed My Charts
            D S Shinde Level 1

            Coldfusion has provided a way to convert old xml style sheet of cfchart to the JASON format but doing that also we cannot achieve the old look and feel for charts.Is there any way to include old WebCharts3D http://www.gpoint.com/engine in cf11?

            • 3. Re: ColdFusion 11 Destroyed My Charts
              D S Shinde Level 1

              @sdsinc_pmascari - Do you found any way to fix the cfcharts in CF11 with minimal changes?

              • 4. Re: ColdFusion 11 Destroyed My Charts
                BKBK Adobe Community Professional & MVP

                Please report this as a bug, including the image as proof.

                • 5. Re: ColdFusion 11 Destroyed My Charts
                  sdsinc_pmascari Level 2

                  Sorry, I did not find a way to fix easily.  I've had to go through one by one and fix the charts by using JSON styling.  In the CF Documentation, each attribute that says it requires a "A struct of keys" will accept it.  It has been pure trial and error to get the charts looking somewhat normal again.

                   

                  The documentation for what struct/JSON is needed can be found here:

                   

                  http://www.zingchart.com/docs/json-attributes-syntax/

                  • 6. Re: ColdFusion 11 Destroyed My Charts
                    sdsinc_pmascari Level 2

                    I have submitted several bugs and included the images.  I even had reps from Adobe reach out with offers of help.  But, sadly, after I replied to their original offers I never heard from them again.  Way to follow up, Adobe!

                     

                    What's more infuriating is most of the bugs I've posted, as well as those I've encountered but were already posted by others, have been listed as "Fixed" in the bugbase.  Yet....there have been no updates for CF released!  So, Adobe, you've supposedly fixed these bugs but you leave us hanging with no solution and no timeframe as to when we might see these fixes?  I long for the old "hotfix" days rather than waiting for big update releases.  Bravo, Adobe.....

                    • 7. Re: ColdFusion 11 Destroyed My Charts
                      Anit_Kumar Adobe Employee

                      We apologize for the inconvenience caused. Can you share the bug numbers, you are referencing to?

                       

                      Regards,

                      Anit Kumar

                      • 8. Re: ColdFusion 11 Destroyed My Charts
                        sdsinc_pmascari Level 2

                        Inconvenience?  That's putting it lightly.  We've put off our entire CF11 deployment due to this issue.  It's put us behind for at least 6 months.

                         

                        Might I also add: these are issues I've run into in trying to FIX the terrible looking charts in the first place!  So, not only is the backward compatibility of CFChart non-existent in CF11, it's filled with bugs that make it impossible to "fix" without completely recoding the way the charts are implemented.

                         

                        Bugs (not all were submitted by me):

                        3800311

                        3798825

                        3797316

                        3756789

                        3756754

                        3756738

                        • 9. Re: ColdFusion 11 Destroyed My Charts
                          Anit_Kumar Adobe Employee

                          We are looking into it.

                           

                          Regards,

                          Anit Kumar

                          • 10. Re: ColdFusion 11 Destroyed My Charts
                            D S Shinde Level 1

                            @Anit- Do  you come to any conclusion? It's very serious issue and hoping for the help ASAP!

                            • 11. Re: ColdFusion 11 Destroyed My Charts
                              Anit_Kumar Adobe Employee

                              I have a fix, and I am currently testing it. I will keep you posted.

                               

                              Regards,

                              Anit Kumar

                              • 12. Re: ColdFusion 11 Destroyed My Charts
                                BKBK Adobe Community Professional & MVP

                                Good news, Anit Kumar!

                                • 13. Re: ColdFusion 11 Destroyed My Charts
                                  Anit_Kumar Adobe Employee

                                  just an fyi,

                                   

                                  We tested the fix with two of the users. The hotfix didn't fix the issue. We are currently working on it.

                                   

                                  Regards,

                                  Anit Kumar

                                  • 14. Re: ColdFusion 11 Destroyed My Charts
                                    BKBK Adobe Community Professional & MVP

                                    Power to your pencil, Anit Kumar!

                                    • 15. Re: ColdFusion 11 Destroyed My Charts
                                      fede_ctfd Level 1

                                      I add my line to the sad list of destroyed charts,

                                      jus upgraded to CF11

                                      and spent three hours now fixing bad charts, still going...

                                       

                                      worst of all seems to be "pie" type, comes out too small if showing legend and/or labels together

                                      big problem also the legend who is thieving out a lot of space which was used for the main chart before

                                      and empty title bordered box showing for non-titled charts

                                       

                                      to be fair, however, default styles look pretty good (at least compared to CF8)

                                      • 16. Re: ColdFusion 11 Destroyed My Charts
                                        stuartw81 Level 1

                                        I also have old code that I'm having to amend.

                                         

                                        Specifically the empty title box with a border showing for non-titled charts and having to remove style="default" too.

                                         

                                        I look forward to a hotfix for this.

                                        • 17. Re: ColdFusion 11 Destroyed My Charts
                                          Anit_Kumar Adobe Employee

                                          The "title" issue would be fixed soon and the others are being worked upon, as we discuss.

                                           

                                          Regards,

                                          Anit Kumar

                                          • 18. Re: ColdFusion 11 Destroyed My Charts
                                            c_siegfried Level 1

                                            I Feel your Pain.  Need a downgrade ...

                                            • 19. Re: ColdFusion 11 Destroyed My Charts
                                              dagpet1960 Level 1

                                              Hello Anit

                                               

                                              When do you expect a fix for this issue?

                                              No point for us upgrading to CF11 until there is a fix for CFcharts.

                                               

                                              Mvh

                                               

                                              Dag Pettersen

                                              • 20. Re: ColdFusion 11 Destroyed My Charts
                                                shinglehouse Level 1

                                                Any updates on this?  I just discovered that the upgrade to CF11 also destroyed my charts.  Sigh

                                                • 21. Re: ColdFusion 11 Destroyed My Charts
                                                  sdsinc_pmascari Level 2

                                                  I asked Adobe in an email and received this response:

                                                   

                                                  "Cfchart is something we are working on and would update you after consulting with Engg.

                                                  [We have] sent a few test cases to Engg to get them fixed. "

                                                   

                                                  I do not know who/what "Engg" is.

                                                   

                                                  So, still waiting.  My opinion is that, the developers got the new CFChart "working" for CF11 but somehow thorough testing for functionality and backward compatibility were totally missed.  How it ever got through BETA testing is a mystery as well.  I think Adobe owes its community an explanation, apology, and some kind of compensation or offer of good faith.

                                                   

                                                  At this point, I'm guessing a hot fix isn't going to be released.  We're probably looking at a major version update before relief.  CF11.1 maybe?

                                                   



                                                  • 22. Re: ColdFusion 11 Destroyed My Charts
                                                    porkchop520 Level 1

                                                    So are there any recent updates regarding these issues? We're having the same problem and would like to know the timetable for a resolution.

                                                    • 24. Re: ColdFusion 11 Destroyed My Charts
                                                      porkchop520 Level 1

                                                      Thanks for your reply. This helps for testing & development, but I cannot put out a pre-release update to a production server. Any idea of when this will be officially released?

                                                      • 25. Re: ColdFusion 11 Destroyed My Charts
                                                        Anit_Kumar Adobe Employee

                                                        It will be available soon. Thanks for patience and cooperation.

                                                         

                                                        Regards,

                                                        Anit Kumar

                                                        • 26. Re: ColdFusion 11 Destroyed My Charts
                                                          shinglehouse Level 1

                                                          Thanks for working on this.  I do like that you've updated the charting engine, I just hate to have to go back through to fix all the existing code...........

                                                           

                                                          I still receive the following error:

                                                          Could not locate the style file

                                                           

                                                          My style is set just before my chart because I have to do some math on the record count returned and etc in order to know what width I would like the bars in the graph and etc.  So I have a cfsavecontent variable that I store the appropriate information in and then set it in the cfchart tag like so:

                                                           

                                                          style="#style4#"

                                                           

                                                          Maybe this isn't even possible anymore?

                                                          • 27. Re: ColdFusion 11 Destroyed My Charts
                                                            Anit_Kumar Adobe Employee

                                                            Can you share the completely repro code, or share the bug# if already logged?

                                                             

                                                            Regards,

                                                            Anit Kumar

                                                            • 28. Re: ColdFusion 11 Destroyed My Charts
                                                              shinglehouse Level 1

                                                                                       <cfsavecontent variable="style1">

                                                                                          <?xml version="1.0" encoding="UTF-8"?>

                                                                                          <frameChart is3D="false" altText="Summary Reports">

                                                                                              <frame outline="black"/>

                                                                                              <elements shapeSize="<cfoutput>#shapeSize#</cfoutput>" fixedWidth="9" />

                                                                                              <popup background="#666666" foreground="white"/>

                                                                                          </frameChart>

                                                                                      </cfsavecontent>

                                                               

                                                                                  <cfchart

                                                                                          style="#style1#"

                                                                                          format="png"

                                                                                          scalefrom="0"

                                                                                          scaleTo="#getArticleCountByPestTypeScaleTo.maxScaleTo#"

                                                                                          gridLines="#gridLines#"

                                                                                          chartwidth="930"

                                                                                          chartheight="300"

                                                                                          showLegend="false">

                                                               

                                                                                          <cfchartseries

                                                                                                type="bar"

                                                                                                paintStyle="plain"

                                                                                                seriescolor="##0078ae">

                                                               

                                                                                                  <cfloop query="getArticleCountByPestType">

                                                                                                      <cfchartdata item="#getarticleCountByPestType.pestTypeText#" value="#getarticleCountByPestType.count#">

                                                                                                  </cfloop>

                                                               

                                                                                          </cfchartseries>

                                                                                      </cfchart>

                                                               

                                                              You can see how I use query data to set some elements of the display.  Everything works except for the style attribute in the cfchart tag, that throws a file not found error.

                                                              • 29. Re: ColdFusion 11 Destroyed My Charts
                                                                sdsinc_pmascari Level 2

                                                                Is it possible for you to send in JSON styling as opposed to XML?  The ability to use a JSON string was supposed to have been restored (BUG: 3859531).

                                                                • 30. Re: ColdFusion 11 Destroyed My Charts
                                                                  porkchop520 Level 1

                                                                  Is it just me, or do the bar graph labels on the x-axis still not work very well (Even after Update 3)?

                                                                  • 31. Re: ColdFusion 11 Destroyed My Charts
                                                                    MikeAzar Level 1

                                                                    Am I understanding that if we upgrade from CF9 to CF11 none of the cfgraph will work?

                                                                    Is there an option to upgrade to CF11 but continue to use CF9 graphs?

                                                                    • 32. Re: ColdFusion 11 Destroyed My Charts
                                                                      shinglehouse Level 1

                                                                      No, they're not totally "broken" it is mainly formatting issues that I'm encountering.

                                                                      • 33. Re: ColdFusion 11 Destroyed My Charts
                                                                        manikandank53669618 Level 1

                                                                        Hi,

                                                                         

                                                                        this might be out of blue, but did you find a way to set the style on the go and then use it, without having to save it in a file?
                                                                        If so, please let me know. I have the same problem, moving from CF10 to CF11.    

                                                                        • 34. Re: ColdFusion 11 Destroyed My Charts
                                                                          shinglehouse Level 1

                                                                          I did find a work around.  There is a utility that you can use to convert your XML to JSON, I then used that rendered JSON to figure out what I need to adjust on the fly.  I did have to write it to a file though, which I deleted immediately after displaying the chart.

                                                                           

                                                                          A quick example:

                                                                          <cfsavecontent variable="chart1">

                                                                               {"graphset":[{"legend":{"border-color":"#CCCCCC"}]}

                                                                          </cfsavecontent>

                                                                          <!---take the JSON and write it to a file to read in for styling--->

                                                                          <cffile action="write" file="#ExpandPath('./chart1Style#session.userID#')#" output="#chart1#">

                                                                          <cfchart

                                                                               style="chart1Style#session.userID#"

                                                                               etc etc etc

                                                                          </cfchart>

                                                                          <!---delete the chart style file--->

                                                                          <cffile action="delete" file="#ExpandPath('./chart1Style#session.userID#')#">

                                                                           

                                                                          ColdFusion provides a utility to convert XML styles (used by the old charting system) to JSON styles (used by the new charting system).

                                                                          To perform this conversion, you need to use cfchart_xmltojson.bat (or cfchart_xmltojson.sh) available in <cfusion_home>/bin folder:

                                                                           

                                                                          If you need to avoid writing to a file it seems that you can actually set everything in the attributes of the cfchart tag:

                                                                          cfchart - ColdFusion, English documentation - Adobe Learning Resources

                                                                          • 35. Re: ColdFusion 11 Destroyed My Charts
                                                                            sdsinc_pmascari Level 2

                                                                            That looks like it works, shinglehouse, but I wasn't thrilled with the idea of making/deleting temporary styling files.

                                                                             

                                                                            Many of the attributes in the CFChart tag in CF11 now accept Structs for styling.  These are what I'm now using to get the look I need.  Problem is, exactly format those structs need to be in is not found in the CF documentation for some reason.  However, the Zing Charts website has what you want.  It is found here: http://www.zingchart.com/docs/json-attributes-syntax/  What you'll find is many of the attributes that accept Structs directly correlate to a ZingChart graph object.  For example, plotarea, plot, etc...

                                                                             

                                                                            So, what I've done is define a style that I need for each individual CFChart attribute I wish to use.  Below is an example of a pie chart I've done.  After you get a look at the ZingCharts site, you'll see I've only really scratched the surface.  Nearly every aspect of the chart can be styled.  Use this as a starting point.

                                                                             

                                                                             

                                                                                      <cfset plotarea ={

                                                                                                "adjustLayout"=true,

                                                                                                "alpha"=1,

                                                                                                "margin-top"=5,

                                                                                                "margin-right"=5,

                                                                                                "margin-left"=5,

                                                                                                "margin-bottom"=0

                                                                                            }>

                                                                                    <cfset title = {

                                                                                                "visible"=false,

                                                                                                "backgroundColor"="##dcdcdc"

                                                                                            }>

                                                                                    <cfset border = {

                                                                                                "borderColor"="none"

                                                                                            }>

                                                                                    <cfset legend = {

                                                                                                "visible"=false

                                                                                            }>

                                                                                    <cfset plot = {

                                                                                                "highlight"=false,

                                                                                                "value-box"={

                                                                                                    "placement"="out",

                                                                                                    "connected"=false,

                                                                                                    "text"="%t",

                                                                                                    "font-color"="##5A5A5A",

                                                                                                    "type"="all"

                                                                                                }

                                                                                            }>

                                                                             

                                                                            <cfchart

                                                                                        databackgroundcolor="##dcdcdc"

                                                                                        backgroundColor="##dcdcdc"

                                                                                        plotarea="#plotarea#"

                                                                                        title="#title#"

                                                                                        border="#border#"

                                                                                        legend="#legend#"

                                                                                        plot="#plot#"

                                                                                        chartwidth="460"

                                                                                        chartheight="260"

                                                                                        show3d="yes"

                                                                                        name="ret.pieChartchartImg"><!--- style="#prodJSONFile#" --->

                                                                                        <cfchartseries type="pie">

                                                                                            <cfloop query="myqry">

                                                                                                <cfchartdata item="#numberFormat(myqry.perc,'___._')#%" value="#myqry.perc#">

                                                                                            </cfloop>

                                                                                        </cfchartseries>

                                                                            </cfchart>

                                                                             

                                                                             

                                                                             

                                                                            Too bad that, out-of-the-box, Adobe's default styles were so WAY off-base with being backward compatible to previous CF versions.

                                                                            • 36. Re: ColdFusion 11 Destroyed My Charts
                                                                              shinglehouse Level 1

                                                                              This is great, thanks!  I also wasn't a fan of writing to a temporary file so I switched my bar graphs over to use the styling as you described above and it works great!

                                                                              • 37. Re: ColdFusion 11 Destroyed My Charts
                                                                                manikandank53669618 Level 1

                                                                                Hi,

                                                                                 

                                                                                when I use the xmltojson converter given, it always generates a big set of json strings. When I give just a single xml tag, with some entries in it,

                                                                                like,

                                                                                 

                                                                                <tag1>

                                                                                     <subtag> bla bla </subtag>

                                                                                </tag1>

                                                                                 

                                                                                it goes on to create a full list of string. The problem however is that "bla bla" is not found in the whole JSON file at all. Is there something wrong?    

                                                                                • 38. Re: ColdFusion 11 Destroyed My Charts
                                                                                  shinglehouse Level 1

                                                                                  My guess would be that "bla blah" isn't valid with the new charts.  What is your actual xml that you're trying to convert?

                                                                                   

                                                                                  It isn't the best tool, as you said, it generates just about every attribute it knows instead of just the few that you're looking to utilize.  I had to dig through that large JSON file looking for what I needed.  I pulled out those specific pieces and used them as guide for creating my style file and then later on using them inline like the example above by sdsinc_pmascari.  Which works really well.

                                                                                  • 39. Re: ColdFusion 11 Destroyed My Charts
                                                                                    anton_spaz Level 1

                                                                                    With Both Update 4 & 5, I have the issue with the line chart, as shown in the original post, where the legend is not put inside the plot area.  Instead the plot is squeezed down, with the legend sitting above it.   Is there any fix for this?  I use CFCHART because I generate PDFs, so the charts need to be generated server-side.

                                                                                     

                                                                                    I *need* to have a fix.   I've tried all sorts of things in my JSON file, from not having the (pre-updates 4 & 5 ) default of  "legend":{"position":"100% 5%","layout":"x1","item":{"font-size":"13","font-family":"Arial Narrow"}},  to trying "legend":{} and even excluding "legend" completely.

                                                                                     

                                                                                    ZingCharts website/documentation is no help, as the version they are at put the legend inside the plot area correctly.

                                                                                    1 2 Previous Next