Open natanfernandes opened 3 weeks ago
Deployment failed with the following error:
You don't have permission to create a Preview Deployment for this project.
View Documentation: https://vercel.com/docs/accounts/team-members-and-roles
An API question: What will happen to the variant
property when you add another chart (type)? Every chart type
will have an "horizontal" variant?
An API question: What will happen to the
variant
property when you add another chart (type)? Every charttype
will have an "horizontal" variant?
After implement the variant this case come to my mind, at this moment, just bar has the horizontal variant, the first solution that i thought was when the type hasnt the variant, return the default. Second solution is create the variant type according to the type variants, like bar.horizontal
or something but seems to be more complex
I moved the type
and variant
props to chartConfig
, by this we can validate the variant according to the type
Updating the status, @beatrizmilhomem and @davicostalf are checking the design part of the PR.
Summary
The
@vtex/shoreline-charts
library wrapsecharts
in a react component with consistent theming.Default styles
@vtex/shoreline-charts
will contains default styles for all chart, in order to get a easy setup for a chart, in this PR we've a demo with theBar
chart. For the default styles we havevariants
, which is a pre-defined attributes on theme in addition to a pre-defined values to the series itself, but the user is free to edit and customize the chart as your own.Installation
Examples
Simple chart setup
Variant chart