kelainan global chart

This commit is contained in:
Sas Andy
2024-04-30 17:16:21 +07:00
parent 3c9c63dd2a
commit d601cc0801
10 changed files with 898 additions and 316 deletions

View File

@@ -62,8 +62,12 @@ func main() {
if err != nil {
app.Logger.Fatalf("failed to create store: %s", err)
}
bchart, err := db.NewBarChartStore(dbName)
if err != nil {
app.Logger.Fatalf("failed to create store: %s", err)
}
lpchart := services.NewServicesPiechart(services.Piechart{}, LpchartStore)
lpchart := services.NewServicesPiechart(services.Piechart{}, services.Barchart{}, LpchartStore, bchart)
lphsx := handlers.NewPiechartHandler(lpchart)
handlers.SetupRoutesPieChart(app, lphsx)