Ticket #2529972 (closed defect)

Reporter


flacoste
Opened: 02/16/11
Last modified: 08/18/11
Status: closed
Type: defect
Resolution: fixed

Owner


Tripp Bridges
Target Release: 3.4.0
Priority: P3 (normal)
Summary: Stacked column charts with 0 or missing key have display error
Description:

YUI().use('charts', function (Y) {
var data = [{date: '2011-01-02', key1: 10, key2: 5, key3: 0},
{date: '2011-01-03', key1: 5, key3: 4},
{date: '2011-01-04', key1: 2, key2: 4, key3: 4}];

var chart = new Y.Chart({
dataProvider: data,
stacked: true,
type: 'column',
categoryKey: 'date',
render: '#chart'
});
});

If the chart div is 640x400, you'll see that the key3 in the first column is drawn with some heigh under the X axis and the missing key2 will appear as empty space and with an extra ghost column in
the second data point.

I would expect missing keys to be interpreted as meaning 0 (at least in the column/stacked case) and value of 0 not getting any height.

Type: defect Observed in Version: 3.3.0
Component: Charts Severity: S3 (normal)
Assigned To: Tripp Bridges Target Release: 3.4.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: All
URL:
Test Information:

Change History

Tripp Bridges

YUI Developer

Posted: 02/17/11
  • location changed to Library Code
  • milestone changed to 3.NEXT
  • priority changed to P3 (normal)
  • status changed from new to accepted

Tripp Bridges

YUI Developer

Posted: 02/23/11
  • milestone changed from 3.NEXT to 3.4.0

Tripp Bridges

YUI Developer

Posted: 04/18/11
  • status changed from accepted to checkedin

George

YUI Developer

Posted: 08/18/11
  • resolution changed to fixed
  • status changed from checkedin to closed