Skip to main content
Known Participant
Jul 19, 2018 5:17 AM UTC
Question

ColdFusion 2018 CFCHART format="html" is not rendering graph

Server side, I am using developer edition on a Windows 10 64 bit VM.  I installed CF using the Developer Profile option, with defaults selected.

Client side, web browser is Chrome on MacOS X

Yes, I am an admin on the box.

Yes, I ran the installer as admin.

Yes, I tried to run the CF service under a local admin account.

No, there is no error in the console.

Yes, /cf_scripts/scripts/chart/cfchart.js is loading as it should, though with a 304 response code.

format="png" is working.

Any ideas?

Thanks!

Alberto

This topic is closed to new replies. Start a new post to keep the conversation going.

16 replies

Known Participant
Jul 23, 2018 8:22 PM UTC

I created a bug for the bug tracker to get version 2018 added to the version menu for the CF product:

https://tracker.adobe.com/#/view/TKR-205

Translate
Priyank Shrivastava.
Inspiring
Jul 23, 2018 8:32 PM UTC

Hi Alberto,

I can see the issue with ColdFusion 2018 with DOCTYPE+cfchart, it is not rendering the chart, however, as you suggested, I removed the DOCTYPE and it started to work.

As Dattanand is already responded here, I will work with him to provide any reproducible case if needed.

Thanks for the input.

Thanks,

Priyank Shrivastava

Translate
Thanks, Priyank Shrivastava
Known Participant
Jul 23, 2018 8:43 PM UTC

Hi Priyank,

I would like to file this as a bug.  Can you please help getting 2018 added to the version selection in the bug tracker?

https://tracker.adobe.com/#/view/TKR-205

Thanks!

Alberto

Translate
Known Participant
Jul 23, 2018 8:10 PM UTC

Tried logging a bug, but the bug tracker does not have version 2018 as an option.

Does anyone know who can get that fixed?

Thanks!

Alberto

Translate
dattanandb56935331
Participating Frequently
Jul 23, 2018 9:40 AM UTC

Hi Alberto,

                       I followed the steps shared by you on Mac OS (10.13.5) and it worked fine with and without connector.

Code snippet :

<cfchart format="html" type="bar" showlegend="false" chartHeight="400" chartWidth="600" title="Sales report">

    <cfchartseries>

        <cfchartdata item="2012" value=#randrange(10,100)#>

        <cfchartdata item="2013" value=#randrange(10,100)#>

        <cfchartdata item="2014" value=#randrange(10,100)#>

        <cfchartdata item="2015" value=#randrange(10,100)#>

        <cfchartdata item="2016" value=#randrange(10,100)#>

        <cfchartdata item="2017" value=#randrange(10,100)#>

    </cfchartseries>

</cfchart>

Attaching the screen-shot

chart

 

Let me know if I am missing anything here. Please share with us the screen-shot and code snippet.

Thanks,

Dattanand Bhat

Translate
Known Participant
Jul 23, 2018 7:16 PM UTC

Hi Dattanand,

It appears the doctype tag is preventing the chart from rendering with the html attribute for some reason.

If I remove the line below, the chart renders.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

I tried stripping it down to <!DOCTYPE html> , but that did not help.

Suggestions?

Thanks!

Alberto

Translate
WolfShade
Legend
Jul 23, 2018 7:37 PM UTC

What error messages, if any, do you get when using <!DOCTYPE html>?

V/r,

^ _ ^

Translate