Help with complex dynamic form #12283
Unanswered
predofrazao
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a BI project that allow users to create their own charts. The problem is that each type of chart (bar, pie, etc) has it's own configuration and I need a way to dynamically show them (based on chart type) together with the static form fields (name, description, chart type, etc). Is basically like how Grafana works in the GIF:
And this is my current layout:
Currently, all my logic exists on CRUD level, and I've created a
ChartPicker(chartType)
utility, that watcheschartType
from "Form" and return the properly<Chart />
component, then I render it on "Chart preview" area.I'm really struggling with this and I would like to know how you guys would do this or any tips on this.
Thanks on advance.
Beta Was this translation helpful? Give feedback.
All reactions