tracker issue : CF-4198866

select a category, or use search below
(searches all categories and all time range)
Title:

CFChart does not allow percentage based width and height

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Stephen Walker / Stephen Walker ()

Created: 06/18/2017

Components: Charting/Graphing

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF10+ / 2018.0.0.310321

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Win All

Vote Count: 1

Creating a chart using cfchart with a width or height of 100% or other percentage value will not work.  The underlying charting library (ZingChart)  has supported this since December 2010 (v0.101213   (13-Dec-2010)), but the legacy support for flash requires a fixed pixel value.

Steps to Reproduce: Use cfchart and attempt to use a percentage value.

Actual Result: An error indicating the need to use a numeric value.

Expected Result: percentage based layout to support responsive design.

Any Workarounds: Don't use cfchart.

Attachments:

  1. June 19, 2017 00:00:00: Chart.zip

Comments:

I've emailed to cfinstal@adobe.com some examples. I have also attached examples here. I can create a standalone example if needed. We're using ColdFusion 2016 Enterprise by the way.
Comment by Justin C.
561 | June 19, 2017 06:27:04 PM GMT
How is this now a third-party issue? The ZingChart library supports percentages, but the ColdFusion implementation prevents it from functioning properly.
Comment by Stephen W.
562 | July 26, 2017 07:05:27 AM GMT
So what does this mean "third-party issue"? Are you all working with Zing Charts to have a fix for ColdFusion? I know for sure that Zing Chart has a way to have the chart be responsive because you can use percentage based sizes for their charts.
Comment by Justin C.
563 | July 28, 2017 02:39:13 AM GMT
Hi Justin, There are majorly 2 types of charts that CF supports. They being, 1) server-side charts - generated on server, 2) client-side charts - generated on browser For server-side charts, ZingCharts doesn't support giving width in percentages. (As is the case with the current example given in this bug) For client-side charts, these seems to be an issue with passing width in percentage. We are working with ZingCharts to resolve this.
Comment by Nikhil S.
29008 | July 31, 2017 12:05:40 PM GMT