Highlighted

CFChart type=JPG url attribute bug

Community Beginner ,
Jun 24, 2020

Copy link to clipboard

Copied

Hi there,

When creating a line chart of type JPG or PNG, incorrect $ITEMLABEL$ are passed to the javascript code specified in the url attribute if there are more than 10 data points in the x axis.

 

Just submited a bug report along with sample code to reproduce the problem. 

https://tracker.adobe.com/#/view/CF-4209142

 

Thought I may post here to in case someone has a better work around. 

 

Cheers

Views

38

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

CFChart type=JPG url attribute bug

Community Beginner ,
Jun 24, 2020

Copy link to clipboard

Copied

Hi there,

When creating a line chart of type JPG or PNG, incorrect $ITEMLABEL$ are passed to the javascript code specified in the url attribute if there are more than 10 data points in the x axis.

 

Just submited a bug report along with sample code to reproduce the problem. 

https://tracker.adobe.com/#/view/CF-4209142

 

Thought I may post here to in case someone has a better work around. 

 

Cheers

Views

39

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 24, 2020 1
Adobe Community Professional ,
Jun 26, 2020

Copy link to clipboard

Copied

Well spotted, Ken.  I have voted to have the bug urgently fixed. My comments were: "Urgent. Limiting the alerts to 10 is a serious limitation. In any case, if you look at the source code in the browser, you will [see] a glaring error being repeated."

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 26, 2020 0
Adobe Community Professional ,
Jun 26, 2020

Copy link to clipboard

Copied

As I said earlier, if you look at the source code of the web page, you will see that there is an error in the Javascript that ColdFusion automatically generates for the chart. Underneath ColdFusion uses the ZingCharts library to generate the chart. This makes it difficult to work around. 

 

The Javascripts are located at {CF_WEBROOT_DIRECTORY}\cf_scripts\scripts\chart\. Beware: these are system files. If you tamper with them you will run the risk of breaking much more than you fix.

 

Your best bet is either

1) to wait till the folks at Adobe fix the bug, or

2) to use your own chart-generating library to generate the chart.

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 26, 2020 0
Community Beginner ,
Jun 26, 2020

Copy link to clipboard

Copied

At the moment, I have reduced the data points to 10, as I am charting 10 months of data instead of 12.  Fortunately, the bug does not affect html charts.  I have not switch to html charts as it is a global swtich in my code and some of my charts are emailed, which can only be done for type jpg or png.

 

I had a look at cfchart-html.js but it is optimised for download anyway. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 26, 2020 0