Skip to content
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

Chart Component Creation #295

Closed
thanasis457 opened this issue Sep 23, 2024 · 0 comments · Fixed by #305
Closed

Chart Component Creation #295

thanasis457 opened this issue Sep 23, 2024 · 0 comments · Fixed by #305
Assignees

Comments

@thanasis457
Copy link
Contributor

thanasis457 commented Sep 23, 2024

Description

We want providers to be able to add custom components to their pages.
Create a component that will allow admins to select a type of graph/chart and allow them to enter data.

The component should look like this and will have three options:
Screenshot 2024-09-23 at 19 12 25
Screenshot 2024-09-23 at 19 12 36
Screenshot 2024-09-23 at 19 12 44

Notes:

  1. The "delete" button should not be doing anything for now.
  2. Make a state variable that will be be updated every time you any of the information on the component changes. This variable should have a schema that you can come up as you alter the component. It should look something like this.
{
    "type": "pie" /* or "progress" or "line",
    "data": {},
    ...
}

Make a schema that makes sense and make sure to create a type for it and include it in your PR.

@charliejlin charliejlin linked a pull request Oct 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants