Opened 11 years ago

Last modified 6 years ago

#12182 assigned defect

Dojox.charting.DataChart doesn't support x,y coordinants from server

Reported by: kbrowder Owned by: dylan
Priority: high Milestone: 1.15
Component: Charting Version: 1.5
Keywords: datachart coordinants Cc:
Blocked By: Blocking:


It appears that DataChart?.js has some typecasting that causes x,y coordinate data to not work even though they work in Chart2D.

Lines 400 (ar.push(Number(field));), 411 (this.seriesData[nm].push(Number(field));), and 413 (this.seriesDataBk[nm].push(Number(field));) all use a typecast to Number() which causes series that are in the format of {x:3,y:4} to not work in DataChart?.

Removing the Number conversion around field seems to fix the problem although for safety it may be better to check the data to see if it's a coordinate if so then cast both x and y to numbers, if not cast the whole object.

Change History (7)

comment:1 Changed 11 years ago by Eugene Lazutkin

Owner: changed from Eugene Lazutkin to Mike Wilcox

comment:2 Changed 11 years ago by Mike Wilcox

Milestone: tbd1.7

comment:3 Changed 10 years ago by Colin Snover

Milestone: 1.82.0

1.8 has been tagged; moving all outstanding tickets to next major release milestone.

comment:4 Changed 7 years ago by dylan

Owner: changed from Mike Wilcox to dylan
Status: newassigned

comment:5 Changed 7 years ago by dylan

Milestone: 2.01.11

If this is easy to fix, I'll land it for 1.11. I've not looked into it yet.

comment:6 Changed 7 years ago by dylan

Milestone: 1.111.12

comment:7 Changed 6 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.