tracker issue : CF-4198339

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

cfchart bar/hbar category chart doesn't always display labels for all categories

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Jonas Meller / Jonas Meller ()

Created: 02/15/2017

Components: Charting/Graphing

Versions: 2016,11.0

Failure Type: Others

Found In Build/Fixed In Build: 2016.0.03.301771 / CF11HF12 302479 CF2016HF4 302484

Priority/Frequency: Normal /

Locale/System: / Windows 7 SP1 64-bit

Vote Count: 0

Listed in the version 2016.0.04.302561 Issues Fixed doc
Problem Description:
cfchart bar/hbar category chart doesn't always display labels for all categories. The issue exist for both png and html formats.

Steps to Reproduce:
<cfchart format="png" xaxistype="category" font="arial">
	<cfchartseries type="bar">
		<cfchartdata item="1105" value="4.8" />
		<cfchartdata item="1103" value="5.2" />
		<cfchartdata item="1107" value="5.5" />
		<cfchartdata item="1101" value="4.5" />
	</cfchartseries>
</cfchart>

Actual Result:
Only two of the bars have a label on the x axis. See attachment bar_chart_actual.png

Expected Result:
I expected all of the bars to have a label on the x axis. See attachment bar_chart_expected.png

Any Workarounds:
Change so that at least one item can't be converted to a number (e.g. change 1101 to 1101X).

Attachments:

  1. February 15, 2017 00:00:00: bar_chart_actual.png
  2. February 15, 2017 00:00:00: bar_chart_expected.png

Comments:

CF10 exhibits the expected behavior.
Comment by Jonas M.
1180 | February 15, 2017 03:34:51 PM GMT