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

Pull data from API #21

Open
elkhawajah opened this issue Oct 2, 2020 · 3 comments
Open

Pull data from API #21

elkhawajah opened this issue Oct 2, 2020 · 3 comments

Comments

@elkhawajah
Copy link

Hello,

Is there any plan to load data from API instead of manual importing of data ?

@ailon
Copy link
Collaborator

ailon commented Oct 2, 2020

Hi,

You can configure the chart itself to load the data from an API. Or do you want to load data into the data editor and change it? If so, could you please provide some more details on the use case?

@elkhawajah
Copy link
Author

My understanding that I can embed the editor in my web application, the end user will be able to create charts for the predefined data models we have in the application, configure the chart, then embed it in a dashboard.

A use case is a project management web app I have, I want the user to create a dashboard for tracking portfolio, projects, tasks, they open editor, start creating charts, we already have apis for projects, tasks .. etc, user will just pick the source to read from, configure the chart with data coming from the api (all json format), when good, embed it in their dashboard.

Does it make sense ? Doable now ? Is it in your roadmap ?

@ailon
Copy link
Collaborator

ailon commented Oct 3, 2020

It does make sense and you can achieve similar results now. Though I'm not sure if that is an acceptable workflow for you.

You can pass the preset dataset to the editor from your code. Would that make sense for you? Or do you need users to be able to pick a data source in the editor?

Users can set the chart's data source in the editor (set its data source fields in properties, though that needs a bit of work on our side still). But I see how this could be confusing when there's test/initial data present.

You can also disable the data view in the editor - this way the charts will either use your preset data or whatever is set in the data source property.

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

No branches or pull requests

2 participants