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
How can I change the default selected bar if the data changes?
Background Info/Attempts
Hi, I have 3 buttons, each of them change de data of the chart. I know how to change the color on specific bar using useChartPressState, but when I press other button and the data changes I don't know how to update or select a specific bar with this new data.
On the other hand, let's suppose we have the following data:
X axis is date, why is necessary when using useChartPressState pass the Y value? If I pass the X key I will expect to get its Y value useChartPressState({ x: "2024-07-01", y: { temp: 24 } })
Thank you very much
The text was updated successfully, but these errors were encountered:
Question
How can I change the default selected bar if the data changes?
Background Info/Attempts
Hi, I have 3 buttons, each of them change de data of the chart. I know how to change the color on specific bar using useChartPressState, but when I press other button and the data changes I don't know how to update or select a specific bar with this new data.
On the other hand, let's suppose we have the following data:
X axis is date, why is necessary when using useChartPressState pass the Y value? If I pass the X key I will expect to get its Y value
useChartPressState({ x: "2024-07-01", y: { temp: 24 } })
Thank you very much
The text was updated successfully, but these errors were encountered: