[Plot] Test 2D chart drawing

Test drawing using fallback canvas 2D API, WTD-1070.
This commit is contained in:
Victor Woeltjen
2015-04-06 14:27:43 -07:00
parent 3db8c1a32d
commit e01c45df2e
3 changed files with 76 additions and 3 deletions

View File

@ -14,10 +14,10 @@ define(
*/
function Canvas2DChart(canvas) {
var c2d = canvas.getContext('2d'),
dimensions,
origin,
width = canvas.width,
height = canvas.height;
height = canvas.height,
dimensions = [ width, height ],
origin = [ 0, 0 ];
// Convert from logical to physical x coordinates
function x(v) {