tracker issue : CF-3323375

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

HTML cfchart ignores labelFormat attribute

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 09/03/2012

Components: Charting/Graphing

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win All

Vote Count: 0

HTML cfchart ignores the following: labelformat="currency", labelformat="percent", and labelformat="date".

Repro:

<cfchart format="html" type="bar" labelformat="date">
  <cfchartseries>
    <cfchartdata item="foo" value="40858" />
    <cfchartdata item="bar" value="41224" />
  </cfchartseries>
</cfchart>

<cfchart format="html" type="bar" labelformat="currency">
  <cfchartseries>
    <cfchartdata item="foo" value="11" />
    <cfchartdata item="bar" value="22" />
  </cfchartseries>
</cfchart>

<cfchart format="html" type="bar" labelformat="percent">
  <cfchartseries>
    <cfchartdata item="foo" value="11" />
    <cfchartdata item="bar" value="22" />
  </cfchartseries>
</cfchart>

1) Run above code and see y-axis label format is not applied (bad)
2) change format="html" to one of the following: format="flash", format="jpg", or format="png"
3) See y-axis label format is applied (good)

Lack of formatting makes display of currency, date, and percent confusing in the y-axis labels of HTML charts.

Can the labelformat attribute please be supported in HTML charts?  If not, then the documentation should be updated to indicate that HTML charts do not support the labelformat attribute.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3323375

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

The Documentation actually has the following in it although it should be a little more prominent: "For client-side charting, the following attributes are not supported: format, labelformat, seriesplacement with percent as the value, sort, xaxis, tipsstlye, url, xAxisTYpe, xoffset, yaxistype, and yoffset." Instead of using labelformat, you can use the following in your JSON code. "scale-y":{ "format":"$%v", "thousands-separator":",", "decimals":"0"
Comment by External U.
18204 | September 10, 2012 02:57:04 PM GMT