@@ -441,7 +441,7 @@ helpers.extend(DatasetController.prototype, {
441
441
442
442
for ( i = 0 , ilen = parsed . length ; i < ilen ; ++ i ) {
443
443
item = parsed [ i ] ;
444
- meta . data [ item . _index ] . _parsed = item ;
444
+ meta . data [ start + i ] . _parsed = item ;
445
445
446
446
if ( stacks ) {
447
447
item . _stackKeys = { } ;
@@ -467,7 +467,7 @@ helpers.extend(DatasetController.prototype, {
467
467
* @param {number } count - number of items to parse
468
468
* @returns {object } parsed item - item containing index and a parsed value
469
469
* for each scale id.
470
- * Example: {index: 1, xScale0: 0, yScale0: 1}
470
+ * Example: {xScale0: 0, yScale0: 1}
471
471
* @private
472
472
*/
473
473
_parsePrimitiveData : function ( meta , data , start , count ) {
@@ -479,7 +479,7 @@ helpers.extend(DatasetController.prototype, {
479
479
var i , ilen , item ;
480
480
481
481
for ( i = start , ilen = start + count ; i < ilen ; ++ i ) {
482
- item = { _index : i } ;
482
+ item = { } ;
483
483
item [ iScale . id ] = singleScale || iScale . _parse ( labels [ i ] , i ) ;
484
484
item [ vScale . id ] = vScale . _parse ( data [ i ] , i ) ;
485
485
parsed . push ( item ) ;
@@ -495,7 +495,7 @@ helpers.extend(DatasetController.prototype, {
495
495
* @param {number } count - number of items to parse
496
496
* @returns {object } parsed item - item containing index and a parsed value
497
497
* for each scale id.
498
- * Example: {index: 1, xScale0: 0, yScale0: 1}
498
+ * Example: {xScale0: 0, yScale0: 1}
499
499
* @private
500
500
*/
501
501
_parseArrayData : function ( meta , data , start , count ) {
@@ -505,7 +505,7 @@ helpers.extend(DatasetController.prototype, {
505
505
var i , ilen , item , arr ;
506
506
for ( i = start , ilen = start + count ; i < ilen ; ++ i ) {
507
507
arr = data [ i ] ;
508
- item = { _index : i } ;
508
+ item = { } ;
509
509
item [ xScale . id ] = xScale . _parse ( arr [ 0 ] , i ) ;
510
510
item [ yScale . id ] = yScale . _parse ( arr [ 1 ] , i ) ;
511
511
parsed . push ( item ) ;
@@ -521,7 +521,7 @@ helpers.extend(DatasetController.prototype, {
521
521
* @param {number } count - number of items to parse
522
522
* @returns {object } parsed item - item containing index and a parsed value
523
523
* for each scale id. _custom is optional
524
- * Example: {index: 1, xScale0: 0, yScale0: 1, _custom: {r: 10, foo: 'bar'}}
524
+ * Example: {xScale0: 0, yScale0: 1, _custom: {r: 10, foo: 'bar'}}
525
525
* @private
526
526
*/
527
527
_parseObjectData : function ( meta , data , start , count ) {
@@ -531,7 +531,7 @@ helpers.extend(DatasetController.prototype, {
531
531
var i , ilen , item , obj ;
532
532
for ( i = start , ilen = start + count ; i < ilen ; ++ i ) {
533
533
obj = data [ i ] ;
534
- item = { _index : i } ;
534
+ item = { } ;
535
535
item [ xScale . id ] = xScale . _parseObject ( obj , 'x' , i ) ;
536
536
item [ yScale . id ] = yScale . _parseObject ( obj , 'y' , i ) ;
537
537
parsed . push ( item ) ;
0 commit comments