You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want the yaxis.labels.formatter to be changed upon some condition. I build a new options object in that case
(with useMemo()) and pass it to the same Chart
However, the formatter sometimes doesn't change - or changes only the first time.
The format (both in the y axis and in the data points tooltips) should alternate between "$ 000" and "n =000"
Actual Behavior
Only the first time the format changes.
The behaviour is not fully predictable. Sometimes by just adding a change in the legend (SHOWLEGEND=true) or adding
a (changing) title, the new format applies.
leonbloy
changed the title
Option ( yaxis.labels.formatter ) is not updated when options prop changes
Option yaxis.labels.formatter is not updated when options prop changes
Apr 12, 2024
Description
I want the
yaxis.labels.formatter
to be changed upon some condition. I build a newoptions
object in that case(with
useMemo()
) and pass it to the sameChart
However, the formatter sometimes doesn't change - or changes only the first time.
https://codesandbox.io/p/sandbox/apexcharts-issue-vdt3jp
Steps to Reproduce
Expected Behavior
The format (both in the y axis and in the data points tooltips) should alternate between
"$ 000"
and"n =000"
Actual Behavior
Only the first time the format changes.
The behaviour is not fully predictable. Sometimes by just adding a change in the legend (SHOWLEGEND=true) or adding
a (changing) title, the new format applies.
Screenshots
Issue2024-04-11.231426.mp4
Reproduction Link
https://codesandbox.io/p/sandbox/apexcharts-issue-vdt3jp
The text was updated successfully, but these errors were encountered: