add echart kelainan lab
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
6
models/tabkelainanlab.models.go
Normal file
6
models/tabkelainanlab.models.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package models
|
||||
|
||||
type KelainanLabModel struct {
|
||||
Mcu_KelainanName string `db:"Mcu_KelainanName"`
|
||||
Total int `db:"total"`
|
||||
}
|
||||
Reference in New Issue
Block a user