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
When using the BarChart component, there are multiple issues with the legends:
Misalignment on First Load:
On the initial load, legend items are displayed within a button component, but the indicator dot (used to denote color) is misaligned and out of place.
Style Change on Click:
Clicking a legend item changes its UI style unexpectedly, diverging from the original style setup.
Incorrect Button Size Definition:
In ChartLegend.vue, the button size is set to xs, but the button component itself does not support an xs size.
While other parts of the BarChart component update as expected, the legend items do not react to changes. This could be due to the fact that legendItems is defined with ref in BarChart.vue, as shown below:
Reproduction
https://www.shadcn-vue.com/docs/charts/bar
Describe the bug
When using the BarChart component, there are multiple issues with the legends:
Misalignment on First Load:
Style Change on Click:
Incorrect Button Size Definition:
ChartLegend.vue
, the button size is set toxs
, but the button component itself does not support anxs
size.Legends Are Not Reactive:
legendItems
is defined withref
inBarChart.vue
, as shown below:Expected Behavior:
System Info
Contributes
The text was updated successfully, but these errors were encountered: