janhurst / unisa-tbi

Decision Support Tool for suspected Traumatic Brain Injuries
https://unisa-tbi.azurewebsites.net
1 stars 1 forks source link

Integrate dashboards into web app #31

Closed janhurst closed 2 years ago

karthikkunala commented 4 years ago

As we have constraint over the usage of PowerBI, can we use matplotlib charts to integrate with flask?

I am working on the set up for that, saw a sample in medium,.com

https://towardsdatascience.com/python-plotting-api-expose-your-scientific-python-plots-through-a-flask-api-31ec7555c4a8

janhurst commented 4 years ago

I'm not a big fan of generating graphics server side.

It is a good way to get matplotlib stuff onto a web page, and its probably going to be better and faster for us to experiment and prototype this way.

Flask is a nice way to get a microservice in place to call underlying models, but I would always reach for a full front end framework for a custom web app. (i.e. Angular, React etc). This tends to lead towards things like D3.js.

But it really depends on exactly what we want the front end to look like... so lets experiment a bit and see.

karthikkunala commented 4 years ago

https://tbicheck.azurewebsites.net/

A sample webapp and I will try to integrate visuals to it.

NikiRPatel commented 4 years ago

I have created web API at "/dashboard" in flask project which is then integrated with dashboard.html page where you can make any required changes.

karthikkunala commented 4 years ago

I will check your code in GitHub @NikiRPatel