mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-09 17:56: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user