Open mzu opened 2 years ago
Hi. Quick question regarding HorizontalAxis. Is there a way to access the index of the tickValues as a param in formatter?
HorizontalAxis
tickValues
formatter
Something like:
<HorizontalAxis tickValues={dataPoints} theme={{ labels: { formatter: (v, index) => renderDataLabel(v, index), }, }} />
It would help rendering additional context for the given dataPoints as part of the labels on the x-axis.
dataPoints
If this or an alternative solution is not possible, would it be hard to add this as a feature?
Hi. Quick question regarding
HorizontalAxis
. Is there a way to access the index of thetickValues
as a param informatter
?Something like:
It would help rendering additional context for the given
dataPoints
as part of the labels on the x-axis.If this or an alternative solution is not possible, would it be hard to add this as a feature?