Ticket #2530032 (closed defect)

Reporter


Jeff Kline
Opened: 03/9/11
Last modified: 05/10/12
Status: closed
Type: defect
Resolution: fixed

Owner


Tripp Bridges
Target Release: 3.5.0
Priority: P3 (normal)
Summary: Charts: changing dataProvider after instantiation but pre-render
Description:

Here are the steps to reproduce the behavior I see:

1. Create a chart instance, but do not render it
2. Modify the chart dataProvider attribute
3. Render the chart. The original dataProvider attribute is the one used by the chart, the new dataProvider is ignored.

I expect the following two pieces of code to render the same thing:

YUI().use('charts', function (Y) {
var cfg = {dataProvider: 0,1,2,3], [0,-1,-4,-16?};
var c = Y.Chart(cfg);
c.set('dataProvider', 0,1,2,3,4], [0,1,4,9,16?);
c.render('#mychart');
});

and

YUI().use('charts', function (Y) {
var cfg = {dataProvider: 0,1,2,3], [0,-1,-4,-16?};
var c = Y.Chart(cfg);
c.render('#mychart');
c.set('dataProvider', 0,1,2,3,4], [0,1,4,9,16?);
});

Type: defect Observed in Version: 3.3.0
Component: Charts Severity: S3 (normal)
Assigned To: Tripp Bridges Target Release: 3.5.0
Location: Library Code Priority: P3 (normal)
Tags: charts Relates To:
Browsers: Safari 5.x - Mac
URL:
Test Information:

Change History

Tripp Bridges

YUI Developer

Posted: 03/9/11
  • location changed to Library Code
  • milestone changed to 3.4.0
  • priority changed to P3 (normal)
  • status changed from new to accepted

Tripp Bridges

YUI Developer

Posted: 07/27/11
  • milestone changed from 3.4.0 to 3.5.0

Tripp Bridges

YUI Developer

Posted: 11/8/11
  • sprint changed to sprint 1

Tripp Bridges

YUI Developer

Posted: 11/9/11
  • estimated changed from 0 to 0.25
  • remaining changed from 0 to 0.25

Tripp Bridges

YUI Developer

Posted: 11/16/11
  • completed changed from 0 to 0.1
  • remaining changed from 0.25 to 0

Available on this branch:
https://github.com/tripp/yui3/tree/yui3.5.0

Will update when merged into master.

Tripp Bridges

YUI Developer

Posted: 12/4/11
  • status changed from accepted to checkedin

Jenny Donnelly

YUI Developer

Posted: 05/10/12
  • resolution changed to fixed

checkedin -> closed

Jenny Donnelly

YUI Developer

Posted: 05/10/12
  • status changed from checkedin to closed

checkedin -> closed