Skip to content

Commit

Permalink
Update samples
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Jan 24, 2021
1 parent 1d499a0 commit bf15077
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion samples/animations/delay.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
var delay = 0;
var dsIndex = context.datasetIndex;
var index = context.dataIndex;
if (context.dataPoint && !context.delayed) {
if (context.parsed && !context.delayed) {
delay = index * 300 + dsIndex * 100;
context.delayed = true;
}
Expand Down
2 changes: 1 addition & 1 deletion samples/scales/financial.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
if (label) {
label += ': ';
}
label += context.dataPoint.y.toFixed(2);
label += context.parsed.y.toFixed(2);
return label;
}
}
Expand Down
2 changes: 1 addition & 1 deletion samples/scriptable/bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
utils.srand(110);

function colorize(opaque, ctx) {
var v = ctx.dataPoint.y;
var v = ctx.parsed.y;
var c = v < -50 ? '#D60000'
: v < 0 ? '#F46300'
: v < 50 ? '#0358B6'
Expand Down
2 changes: 1 addition & 1 deletion samples/scriptable/line.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}

function adjustRadiusBasedOnData(ctx) {
var v = ctx.dataPoint.y;
var v = ctx.parsed.y;
return v < 10 ? 5
: v < 25 ? 7
: v < 50 ? 9
Expand Down
2 changes: 1 addition & 1 deletion samples/scriptable/pie.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
utils.srand(110);

function colorize(opaque, hover, ctx) {
var v = ctx.dataPoint;
var v = ctx.parsed;
var c = v < -50 ? '#D60000'
: v < 0 ? '#F46300'
: v < 50 ? '#0358B6'
Expand Down
2 changes: 1 addition & 1 deletion samples/scriptable/radar.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}

function adjustRadiusBasedOnData(ctx) {
var v = ctx.dataPoint.y;
var v = ctx.parsed.y;
return v < 10 ? 5
: v < 25 ? 7
: v < 50 ? 9
Expand Down
2 changes: 1 addition & 1 deletion samples/tooltips/callbacks.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
var sum = 0;

tooltipItems.forEach(function(tooltipItem) {
sum += tooltipItem.dataPoint.y;
sum += tooltipItem.parsed.y;
});
return 'Sum: ' + sum;
},
Expand Down

0 comments on commit bf15077

Please sign in to comment.