Skip to main content
March 10, 2011
Answered

CFGraph depreciated? Is there something out there to replace it???

  • March 10, 2011
  • 1 reply
  • 1496 views

I have been doing all my development under CFMX (CF6) for years because I was on the development team for it at Allaire/Macromedia. My website however is deployed on a CF8 platform. I have some software that generates graphs based on survey results on the fly (bar, pie, line based on user preference/button pushing). I use "itemLabelOrientation = vertical" and under my CF6 development env it generates a chart that uses vertical words (only if it has to, such as the chart on the left) and horizontal words when not needed. It automaticaly makes this decision when I use the "itemLabelOrientation = vertical" attribute.

HOWEVER... under CF8 it does not honor the attribute and produces this;

So went to the CF8 language reference manual to discover that CFGRAPH is depreciated!!! Arrrrrgh.... And it says to stop using it and it may go away in future releases.  I am thinking of asking Crystal Tech (now NewTech) if they can run my site under CF6 to get around this; but I am not sure they offer this and I'd rather hear that there's something that's not end of life that I can use in place of the CFGRAPH call.

Is there some substitute for CFGraph that I can embed in my ColdFusion code to keep this thing going for years to come?  I have always loved CFGraph. I used to do QA on CFGraph.

Thanks

Steve

    This topic has been closed for replies.
    Correct answer Adam Cameron.

    Dunno what docs you read.  But these are the official ones:

    CFCHART

    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_c_05.html

    CFCHARTSERIES

    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_c_07.html#2741830

    (this is where you set the chart type)

    CFCHARTDATA

    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_c_06.html#2748541

    Creating Charts & Graphs

    http://livedocs.adobe.com/coldfusion/8/htmldocs/graphing_01.html#1156498

    Those cover everything you need.

    CFGRAPH has been deprecated (note: "depreciated" is a different word meaning a different thing, btw) since CFMX6.1, as far as I know.  CFGRAPH was a half-arsed implementation which was pretty much discontinued immediately.

    Pls tell me you are not running CFMX6.0.  Please tell me you're using at least using 6.1.  6.0 was a kinda like an alpha for 6.1.  It's not appropriate to use it in production.

    --

    Adam

    1 reply

    Inspiring
    March 10, 2011

    Take a look at the CFCHART documentation. CFCHART and related tags have replaced CFGRAPH.

    March 10, 2011

    I see - CFCHART... I have read the documentation and I can't seem to find what I am looking for. In CFGRAPH, it allows me to specify "type" of Pie, Bar, or Line. This CFChart seems to only deal with Pie charts, but in a much more complex manner. Am I missing something? Can I accomplish the below dynamic results pages using CFChart?

    http://www.stephenpmurphy.com/survey/survey_results.cfm?SPMSurveyKEY=spmcom&SPMSurveyNAME=test_dev

    Thanks

    Steve

    Inspiring
    March 10, 2011

    I think that you can specify a "type" attribute in the CFCHARTSERIES tag to create a bar chart. I would take a look at the documentation for "Creating Charts and Graphs".

    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-78fe.html