Shopify/polaris-viz

SimpleNormalizedChart value not displaying

Closed this issue · 7 comments

Bug summary

Using other charts seems to be fine, except SimpleNormalizedChart, the Legends value not showing up in react component
as shown live demo here.

The price shows up in live demo and within my react component that price value is missing!

Expected behavior

Show Legend value passed via data props.

envex commented

@ezatla Do you have any code or data that shows this issue?

@ezatla Do you have any code or data that shows this issue?

Hey @envex, I use the sample data which is provided for each component on live demo.
with other charts component it all works fine this one doesn't render the value only.

envex commented

@ezatla Sorry, I don't think I'm understanding the issue. The live demo looks fine to me, what isn't rendering correctly for you?

The demo looks fine on my end also, it's only when I copy the component over to my React app that doesn't display the value, I've provided the image below which I've rendered the chart in my app and value isn't displayed.

Screen Shot 2022-12-09 at 4 03 51 pm

envex commented

If you inspect the elements, are they being rendered without styling, or just not rendered at all?

@envex apologies for the late reply, I have inspected and it showed empty span, if I write into span tag it'll show the content.

ezatla commented

Cannot replicate this issue anymore, closing it.