mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-24 09:06:51 +01:00
Add raw data to context and rename dataPoint to parsed (#8318)
* Make the raw data point available in scriptable context * Rename variables * Update samples
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user