From bb9e8871b4b1ebad935968ae32f3c747fac7c3a2 Mon Sep 17 00:00:00 2001 From: whycq <you@example.com> Date: 星期四, 17 十一月 2022 20:24:04 +0800 Subject: [PATCH] # --- Monitor-APP/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js | 37 ++++++++++++++++++++++++++++--------- 1 files changed, 28 insertions(+), 9 deletions(-) diff --git a/Monitor-APP/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js b/Monitor-APP/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js index 2b890d8..5447a0a 100644 --- a/Monitor-APP/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js +++ b/Monitor-APP/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js @@ -43,22 +43,22 @@ const cfu = { //demotype涓鸿嚜瀹氫箟鍥捐〃绫诲瀷锛屼竴鑸笉闇�瑕佽嚜瀹氫箟鍥捐〃绫诲瀷锛屽彧闇�瑕佹敼鏍硅妭鐐逛笂瀵瑰簲鐨勭被鍨嬪嵆鍙� - "type":["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"], - "range":["楗肩姸鍥�","鍦嗙幆鍥�","鐜懓鍥�","璇嶄簯鍥�","婕忔枟鍥�","鍦板浘","鍦嗗姬杩涘害鏉�","鎶樼嚎鍥�","鏌辩姸鍥�","鏉$姸鍥�","鍖哄煙鍥�","闆疯揪鍥�","浠〃鐩�","K绾垮浘","娣峰悎鍥�","鏃堕棿杞存姌绾�","鏃堕棿杞村尯鍩�","鏁g偣鍥�","姘旀场鍥�","鑷畾涔夌被鍨�"], + "type":["pie","ring","rose","word","funnel","map","arcbar","line","column","mount","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"], + "range":["楗肩姸鍥�","鍦嗙幆鍥�","鐜懓鍥�","璇嶄簯鍥�","婕忔枟鍥�","鍦板浘","鍦嗗姬杩涘害鏉�","鎶樼嚎鍥�","鏌辩姸鍥�","灞卞嘲鍥�","鏉$姸鍥�","鍖哄煙鍥�","闆疯揪鍥�","浠〃鐩�","K绾垮浘","娣峰悎鍥�","鏃堕棿杞存姌绾�","鏃堕棿杞村尯鍩�","鏁g偣鍥�","姘旀场鍥�","鑷畾涔夌被鍨�"], //澧炲姞鑷畾涔夊浘琛ㄧ被鍨嬶紝濡傛灉闇�瑕乧ategories锛岃鍦ㄨ繖閲屽姞鍏ユ偍鐨勫浘琛ㄧ被鍨嬶紝渚嬪鏈�鍚庣殑"demotype" //鑷畾涔夌被鍨嬫椂闇�瑕佹敞鎰�"tline","tarea","scatter","bubble"绛夋椂闂磋酱锛堢煝閲弜杞达級绫诲浘琛紝娌℃湁categories锛屼笉闇�瑕佸姞鍏ategories - "categories":["line","column","bar","area","radar","gauge","candle","mix","demotype"], + "categories":["line","column","mount","bar","area","radar","gauge","candle","mix","demotype"], //instance涓哄疄渚嬪彉閲忔壙杞藉睘鎬э紝涓嶈鍒犻櫎 "instance":{}, //option涓簅pts鍙奺opts鎵胯浇灞炴�э紝涓嶈鍒犻櫎 "option":{}, //涓嬮潰鏄嚜瀹氫箟format閰嶇疆锛屽洜闄5绔鐨勫叾浠栫鏃犳硶閫氳繃props浼犻�掑嚱鏁帮紝鍙兘閫氳繃姝ゅ睘鎬у搴斾笅鏍囩殑鏂瑰紡鏉ユ浛鎹� "formatter":{ - "yAxisDemo1":function(val){return val+'鍏�'}, - "yAxisDemo2":function(val){return val.toFixed(2)}, - "xAxisDemo1":function(val){return val+'骞�'}, - "xAxisDemo2":function(val){return formatDateTime(val,'h:m')}, - "seriesDemo1":function(val){return val+'鍏�'}, + "yAxisDemo1":function(val, index, opts){return val+'鍏�'}, + "yAxisDemo2":function(val, index, opts){return val.toFixed(2)}, + "xAxisDemo1":function(val, index, opts){return val+'骞�';}, + "xAxisDemo2":function(val, index, opts){return formatDateTime(val,'h:m')}, + "seriesDemo1":function(val, index, series, opts){return val+'鍏�'}, "tooltipDemo1":function(item, category, index, opts){ if(index==0){ return '闅忎究鐢�'+item.data+'骞�' @@ -66,7 +66,7 @@ return '鍏朵粬鎴戞病鏀�'+item.data+'澶�' } }, - "pieDemo":function(val, index, series){ + "pieDemo":function(val, index, series, opts){ if(index !== undefined){ return series[index].name+'锛�'+series[index].data+'鍏�' } @@ -333,6 +333,25 @@ }, } }, + "mount":{ + "type": "mount", + "color": color, + "padding": [15,15,0,5], + "xAxis": { + "disableGrid": true, + }, + "yAxis": { + "data":[{"min":0}] + }, + "legend": { + }, + "extra": { + "mount": { + "type": "mount", + "widthRatio": 1.5, + }, + } + }, "bar":{ "type": "bar", "color": color, -- Gitblit v1.9.1