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:
Ben McCann
2021-02-05 06:13:32 -08:00
committed by GitHub
parent 0955a2590e
commit eb7ce4e5a0
15 changed files with 31 additions and 24 deletions

View File

@@ -122,7 +122,8 @@ function createTooltipItem(chart, item) {
return {
chart,
label,
dataPoint: controller.getParsed(index),
parsed: controller.getParsed(index),
raw: chart.data.datasets[datasetIndex].data[index],
formattedValue: value,
dataset: controller.getDataset(),
dataIndex: index,