editor4
editor4 copied to clipboard
Pull data from API
Hello,
Is there any plan to load data from API instead of manual importing of data ?
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?
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 ?
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.