@@ -67,8 +67,8 @@ function LineWithMarkers(scene, uid) {
6767
6868 this . hasErrorX = false ;
6969 this . errorXOptions = {
70- positions : new Float32Array ( 0 ) ,
71- errors : new Float32Array ( 0 ) ,
70+ positions : new Float64Array ( 0 ) ,
71+ errors : new Float64Array ( 0 ) ,
7272 lineWidth : 1 ,
7373 capSize : 0 ,
7474 color : [ 0 , 0 , 0 , 1 ]
@@ -78,8 +78,8 @@ function LineWithMarkers(scene, uid) {
7878
7979 this . hasErrorY = false ;
8080 this . errorYOptions = {
81- positions : new Float32Array ( 0 ) ,
82- errors : new Float32Array ( 0 ) ,
81+ positions : new Float64Array ( 0 ) ,
82+ errors : new Float64Array ( 0 ) ,
8383 lineWidth : 1 ,
8484 capSize : 0 ,
8585 color : [ 0 , 0 , 0 , 1 ]
@@ -89,7 +89,7 @@ function LineWithMarkers(scene, uid) {
8989
9090 this . hasMarkers = false ;
9191 this . scatterOptions = {
92- positions : new Float32Array ( 0 ) ,
92+ positions : new Float64Array ( 0 ) ,
9393 sizes : [ ] ,
9494 colors : [ ] ,
9595 glyphs : [ ] ,
@@ -390,8 +390,8 @@ proto.updateFancy = function(options) {
390390 var len = x . length ,
391391 idToIndex = new Array ( len ) ,
392392 positions = new Float64Array ( 2 * len ) ,
393- errorsX = new Float32Array ( 4 * len ) ,
394- errorsY = new Float32Array ( 4 * len ) ,
393+ errorsX = new Float64Array ( 4 * len ) ,
394+ errorsY = new Float64Array ( 4 * len ) ,
395395 pId = 0 ,
396396 ptr = 0 ,
397397 ptrX = 0 ,
@@ -482,13 +482,13 @@ proto.updateFancy = function(options) {
482482 this . fancyScatter . update ( this . scatterOptions ) ;
483483 }
484484 else {
485- this . scatterOptions . positions = new Float32Array ( 0 ) ;
485+ this . scatterOptions . positions = new Float64Array ( 0 ) ;
486486 this . scatterOptions . glyphs = [ ] ;
487487 this . fancyScatter . update ( this . scatterOptions ) ;
488488 }
489489
490490 // turn off fast scatter plot
491- this . scatterOptions . positions = new Float32Array ( 0 ) ;
491+ this . scatterOptions . positions = new Float64Array ( 0 ) ;
492492 this . scatterOptions . glyphs = [ ] ;
493493 this . scatter . update ( this . scatterOptions ) ;
494494
@@ -565,7 +565,7 @@ proto.updateError = function(axLetter, options, positions, errors) {
565565 errorObjOptions . color = convertColor ( errorOptions . color , 1 , 1 ) ;
566566 }
567567 else {
568- errorObjOptions . positions = new Float32Array ( 0 ) ;
568+ errorObjOptions . positions = new Float64Array ( 0 ) ;
569569 }
570570
571571 errorObj . update ( errorObjOptions ) ;
@@ -588,7 +588,7 @@ proto.expandAxesFast = function(bounds, markerSize) {
588588 }
589589} ;
590590
591- // not quite on-par with 'scatter' (scatter fill in several other expand options),
591+ // not quite on-par with 'scatter' (scatter fill in several other expand options)
592592// but close enough for now
593593proto . expandAxesFancy = function ( x , y , ppad ) {
594594 var scene = this . scene ,
0 commit comments