feat: allow more attributes in formatY

This commit is contained in:
Shivam Mishra 2022-11-14 12:32:22 +05:30 committed by GitHub
parent ea95aece5a
commit 35823b4a13
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,
};
});