Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Feature - Chart component [Dev]Β #67

@omarefg

Description

@omarefg

Checklist βœ…

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary πŸ’‘

The Chart component provided an user friendly way of rendering a chart inside a card.

Screenshot from 2021-11-14 11-13-23

We'll expose two types of charts, wave and population. We'll use Echarts to achieve this component, and will use the same schema that echarts uses. This component is an layer between echarts and the project using platzily ui. As echarts is a really heavy library we'll take only what we need. These are the links resulted from the research.

The person in charge of building this component can take information from the links above.

The component will be used like this.

import { Chart } from '@platzily-ui/components'

const options = {} // here will be the schema resulted from the implementation

const MyComponent = () => {
  return (
    <Chart type={'wave' || 'population'} options={options} />
  )
}

Have in mind that we do not have to expose the same schema as echarts, we could expose a minimalist schema of this and take abstration of some fields that could be inherent to Platzily UI design system.

Requirements 🌈

The component must be tested using unit testing.

Motivation πŸ”¦

A way to provide to the user an easy way to render data as charts.

Metadata

Metadata

Assignees

Labels

componentsA components featurefeatureNew feature or requestweight:5something that need work

Type

No type
No fields configured for issues without a type.

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions