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'm having difficulty determining why this is, but I'm passing a data array (array of objects) to a bar chart, and I get this error:
Warning: a path tag (owner: Bar) was passed a numeric string value for CSS property TotalAcquired (value: 38) which will be treated as a unitless number in a future version of React.
When I try to debug, I find that the individual bars are being passed the values from my data array as styles. Those styles never end up getting applied to the resulting component, I'm guessing because they're not valid CSS, but React still complains about the unitless numbers. My implementation looks vaguely like this, (the dataTitle key ends up populating a custom tooltip):
I'm having difficulty determining why this is, but I'm passing a data array (array of objects) to a bar chart, and I get this error:
When I try to debug, I find that the individual bars are being passed the values from my data array as styles. Those styles never end up getting applied to the resulting component, I'm guessing because they're not valid CSS, but React still complains about the unitless numbers. My implementation looks vaguely like this, (the dataTitle key ends up populating a custom tooltip):
The text was updated successfully, but these errors were encountered: