Shopify / polaris-viz

A collection of React and React native components that compose Shopify's data visualization system
https://polaris-viz.shopify.com
Other
330 stars 25 forks source link

Gradients incorrectly formed for line chart and spark line chart #1580

Open thephfernandes opened 1 year ago

thephfernandes commented 1 year ago

Bug summary

Gradients are being completely filled on the two components in the title of this issue. Captura de Tela 2023-08-24 às 15 45 21 Captura de Tela 2023-08-24 às 15 47 49

I am using remix-react, importing the esm stylesheet as mentioned in the documentation, and have no custom configuration in the librarys <PolarisVizProvider> component

Expected behavior

Gradients should not be filled

Actual behavior

Steps to reproduce the problem

  1. Create a basic remix app
  2. Install polaris-viz using npm or yarn
  3. Render a line chart or spark line chart component on the index page.

Specifications

mattsrobot commented 1 year ago

Dear @thephfernandes,

Apologies for hijacking this issue, but how are you importing polaris-viz, the Shopify Remix template uses CommonJS and Polaris-Viz is built as an ESM module. Thankyou kindly.