add echart kelainan lab

This commit is contained in:
2024-07-03 10:47:43 +07:00
parent 7a22f5e4d0
commit eb7343117b
14 changed files with 781 additions and 76 deletions

View File

@@ -85,8 +85,21 @@ type Barchart struct {
Y string `json:"y"`
} `json:"encode"`
} `json:"series"`
Tooltip struct {
Trigger string `json:"trigger"`
AxisPointer struct {
Type string `json:"type"`
} `json:"axisPointer"`
} `json:"tooltip"`
}
type BarDataset struct {
Source [][]interface{} `json:"source"`
}
type BarDataPoint struct {
Score int `json:"score"`
Amount int `json:"amount"`
Product string `json:"product"`
Percentage string `json:"percentage"`
}

View File

@@ -0,0 +1,6 @@
package models
type KelainanLabModel struct {
Mcu_KelainanName string `db:"Mcu_KelainanName"`
Total int `db:"total"`
}