I need to build a dashboard for an application, the dashboard will have different dashlets and each dashlet can have any one of the following things:
- Graphs (JFreeCharts and some Javascript Chart)
- Table data from tables
- Data from external sources
- Maps
What can be a good architecture for such kind of application?
What I have currently in mind is:
- Each dashlet should have its own lifecycle and when the dashboard loads it should just show the UI of the dashlets initially.
- After the page load each dashlet sends a server call (based on its type) to fetch its data
- After the data has been fetched, each dashlet (based on its type) renders the data.