We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec33114 commit f096657Copy full SHA for f096657
docs/samples/types/point.md
@@ -72,7 +72,8 @@ const config = {
72
// <block:utils:3>
73
function value(ctx, datasetIndex, index, prop) {
74
const meta = ctx.chart.getDatasetMeta(datasetIndex);
75
- return meta.controller.getParsed(index)[prop];
+ const parsed = meta.controller.getParsed(index);
76
+ return parsed ? parsed[prop] : NaN;
77
}
78
// </block:utils>
79
0 commit comments