Shopify / polaris-viz

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

Hook useYScale is not exported / How do I set a LineChart Yaxis scale? #1714

Open GhostApps opened 3 months ago

GhostApps commented 3 months ago

Bug summary

The hook useYScale as described in the docs https://polaris-viz.shopify.com/?path=/docs/shared-hooks--page is not exported.

I would like to be able to set a custom YAxis scale for a LineChart and I believe this is the way to do it

Expected behavior

useYScale can be imported into my code and used to set the scale on the graph

Actual behavior

useYScale is not exported so cannot be imported into code

Steps to reproduce the problem

import { useYScale } from "@shopify/polaris-viz";