-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Charts #1636
Comments
TODO: explore a little bit more themes, setting the default values for each chart type in themes |
Hello, @natanfernandes ! |
Related with #1700 |
Folks, have you any updates about this proposal? Here it's a RFC with a chart research. Is there any prediction on when we can implement it? |
@gabriellymoura The issue was blocked due to some topics that were still being defined on the design level. @natanfernandes In a discussion with Bia, Luiz, and Ju, we've agreed that it is possible to go back to implementing charts. We had some questions about tokens usage and style, and that was solved.
|
Hi @gabriellymoura we're back to implement this feature and hope to get back here soon with the first version! |
Great news! @natanfernandes do you have any doc (RFC, TDD) or action plan for these features? I ask this because I want to share with my team (Data analytics), which aims to develop charts on the shoreline too. |
At this moment we just have this issue as main documentation, i'll update with more details about nexts steps and external contributions, we're creating a roadmap of features and their respective documentation, so the contributors can easily collaborate following the chart patterns. Our first release (will be primary the bar chart) aims to go live in mid november. |
Problem
Some of our admin applications currently utilize the same chart library (Recharts), but each application has implemented it differently. This fragmentation in implementation can affect our development process, user experience, and overall system efficiency (RFC). By addressing these problems, we can achieve a more cohesive and maintainable charting solution across all applications.
Solution
We've evaluated popular chart libraries to identify the one that best meets our needs in terms of features, performance, and ease of use, all of these points are in a RFC. At the final, we've decided that Echarts is the one that match our needs.
The main solution, consists in make a wrapper for Echarts lib, adding base styles for most used charts (Bar, Line for ex), in order to make a ready to use chart without any setup or customization, following the patterns and foundations of the chart library Figma made by our Design team, this would allow us to focus on mastering one tool, increasing efficiency and reducing learning curves.
Explain
@vtex/shoreline-charts
have the the variants, custom object styles for different chart types, defining reusable a and customizing serie for thatecharts
At the final, what we're actually doing is:
echarts
and setting up in the component, by this, each chart of type bar will have this style unless the implementer override thisecharts
props), so the implementer can edit and overrideUsage examples
At the bottom level, we'll have a base chart component, that wraps the base setup and functionalities of Echarts for any chart, which is already open.
And, we can use the base chart component to create the others and add their default styles:
With this basic component setup, we can create the base chart passing just the data for the xAxis and the data itself:
But, the final user can decide to edit the chart on your own:
Dependencies
As main dependency we have Echarts, which is the library that we're wrapping for our charts
References
RFC about charting library choose for Healthmonitor
Figma presentation
The text was updated successfully, but these errors were encountered: