feat: allow more attributes in formatY (#401)

This commit is contained in:
Shivam Mishra 2022-11-14 12:33:03 +05:30 committed by GitHub
parent ea95aece5a
commit 2e3011c267
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,11 @@ export default class AxisChart extends BaseChart {
value: value,
yPos: set.yPositions[index],
color: this.colors[i],
formatted: formatY ? formatY(value) : value,
formatted: formatY ? formatY(value, {
name: set.name,
index: set.index,
values: set.values
}) : value,
};
});