Skip to content

Commit bf15077

Browse files
committed
Update samples
1 parent 1d499a0 commit bf15077

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

samples/animations/delay.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
var delay = 0;
7777
var dsIndex = context.datasetIndex;
7878
var index = context.dataIndex;
79-
if (context.dataPoint && !context.delayed) {
79+
if (context.parsed && !context.delayed) {
8080
delay = index * 300 + dsIndex * 100;
8181
context.delayed = true;
8282
}

samples/scales/financial.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
if (label) {
193193
label += ': ';
194194
}
195-
label += context.dataPoint.y.toFixed(2);
195+
label += context.parsed.y.toFixed(2);
196196
return label;
197197
}
198198
}

samples/scriptable/bar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
utils.srand(110);
2828

2929
function colorize(opaque, ctx) {
30-
var v = ctx.dataPoint.y;
30+
var v = ctx.parsed.y;
3131
var c = v < -50 ? '#D60000'
3232
: v < 0 ? '#F46300'
3333
: v < 50 ? '#0358B6'

samples/scriptable/line.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141

4242
function adjustRadiusBasedOnData(ctx) {
43-
var v = ctx.dataPoint.y;
43+
var v = ctx.parsed.y;
4444
return v < 10 ? 5
4545
: v < 25 ? 7
4646
: v < 50 ? 9

samples/scriptable/pie.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
utils.srand(110);
2828

2929
function colorize(opaque, hover, ctx) {
30-
var v = ctx.dataPoint;
30+
var v = ctx.parsed;
3131
var c = v < -50 ? '#D60000'
3232
: v < 0 ? '#F46300'
3333
: v < 50 ? '#0358B6'

samples/scriptable/radar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646
function adjustRadiusBasedOnData(ctx) {
47-
var v = ctx.dataPoint.y;
47+
var v = ctx.parsed.y;
4848
return v < 10 ? 5
4949
: v < 25 ? 7
5050
: v < 50 ? 9

samples/tooltips/callbacks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
var sum = 0;
6969

7070
tooltipItems.forEach(function(tooltipItem) {
71-
sum += tooltipItem.dataPoint.y;
71+
sum += tooltipItem.parsed.y;
7272
});
7373
return 'Sum: ' + sum;
7474
},

0 commit comments

Comments
 (0)