|
@@ -174,7 +174,7 @@ export function getPieData({ datas = [] as number[][], legend = [] as string[],
|
|
|
return { config, dataset }
|
|
|
}
|
|
|
|
|
|
-export function getGaugeData({ value = 50, width = 500, height = 1300 }) {
|
|
|
+export function getGaugeData({ value = 50 }) {
|
|
|
|
|
|
const config = {
|
|
|
"responsive": false,
|
|
@@ -221,52 +221,21 @@ export function getGaugeData({ value = 50, width = 500, height = 1300 }) {
|
|
|
"legend": {
|
|
|
"fontSize": 48,
|
|
|
"prefix": "",
|
|
|
- "suffix": "",
|
|
|
+ "suffix": "%",
|
|
|
"roundingValue": 1,
|
|
|
- "showPlusSymbol": true,
|
|
|
+ "showPlusSymbol": false,
|
|
|
"useRatingColor": true,
|
|
|
"color": "#1A1A1Aff",
|
|
|
"formatter": null
|
|
|
},
|
|
|
"title": {
|
|
|
- "text": "Title",
|
|
|
- "color": "#1A1A1Aff",
|
|
|
- "fontSize": 20,
|
|
|
- "bold": true,
|
|
|
- "textAlign": "center",
|
|
|
- "paddingLeft": 0,
|
|
|
- "paddingRight": 0,
|
|
|
- "subtitle": {
|
|
|
- "color": "#A1A1A1ff",
|
|
|
- "text": "",
|
|
|
- "fontSize": 16,
|
|
|
- "bold": false
|
|
|
- }
|
|
|
+ "text": " ",
|
|
|
+ "show": true,
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
"userOptions": {
|
|
|
- "show": true,
|
|
|
- "position": "right",
|
|
|
- "buttons": {
|
|
|
- "tooltip": false,
|
|
|
- "pdf": true,
|
|
|
- "csv": false,
|
|
|
- "img": true,
|
|
|
- "table": false,
|
|
|
- "labels": false,
|
|
|
- "fullscreen": true,
|
|
|
- "sort": false,
|
|
|
- "stack": false,
|
|
|
- "animation": false
|
|
|
- },
|
|
|
- "buttonTitles": {
|
|
|
- "open": "Open options",
|
|
|
- "close": "Close options",
|
|
|
- "pdf": "Download PDF",
|
|
|
- "img": "Download PNG",
|
|
|
- "fullscreen": "Toggle fullscreen"
|
|
|
- }
|
|
|
+ "show": false,
|
|
|
},
|
|
|
"translations": {
|
|
|
"base": "Base"
|