From 34b22a50ef51a023320e262e213c0298efd51e55 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Sun, 3 Dec 2023 10:25:39 +0800 Subject: [PATCH] * Add chart option of waterpolo. --- module/chart/lang/zh-cn.php | 2 +- module/screen/config.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/chart/lang/zh-cn.php b/module/chart/lang/zh-cn.php index f982b2a9de..06be008c38 100644 --- a/module/chart/lang/zh-cn.php +++ b/module/chart/lang/zh-cn.php @@ -36,7 +36,7 @@ $lang->chart->aggList['min'] = '最小值'; $lang->chart->typeList = array(); $lang->chart->typeList['pie'] = '饼图'; $lang->chart->typeList['line'] = '折线图'; -//$lang->chart->typeList['waterpolo'] = '水球图'; +$lang->chart->typeList['waterpolo'] = '水球图'; $lang->chart->typeList['radar'] = '雷达图'; $lang->chart->typeList['cluBarY'] = '簇状条形图'; $lang->chart->typeList['stackedBarY'] = '堆积条形图'; diff --git a/module/screen/config.php b/module/screen/config.php index 2ac40658bd..ffec6136a5 100644 --- a/module/screen/config.php +++ b/module/screen/config.php @@ -25,6 +25,7 @@ $config->screen->chartOption['pie'] = '{"legend":{"show":true,"top":30," $config->screen->chartOption['radar'] = '{"legend":{"show":true,"top":40,"textStyle":{"color":"#B9B8CE"},"data":[],"left":"center"},"title":{"text":"\u6298\u7ebf\u56fe","show":true,"textStyle":{"color":"#BFBFBF","fontSize":18},"subtextStyle":{"color":"#A2A2A2","fontSize":14},"top":10,"x":"center"},"tooltip":{"show":true},"grid":{"top":90},"dataset":{},"radar":{"shape":"polygon","radius":["0%","60%"],"center":["50%","55%"],"splitArea":{"show":true},"splitLine":{"show":true},"axisName":{"show":true,"color":"#eee","fontSize":12},"axisLine":{"show":true},"axisTick":{"show":true},"indicator":[]},"series":[{"name":"radar","type":"radar","areaStyle":{"opacity":0.1},"data":[]}],"backgroundColor":"rgba(0,0,0,0)"}'; $config->screen->chartOption['line'] = '{"legend":{"show":true,"top":40,"textStyle":{"color":"#B9B8CE"},"left":"center"},"xAxis":{"show":true,"name":"","nameGap":15,"nameTextStyle":{"color":"#B9B8CE","fontSize":12},"inverse":false,"axisLabel":{"show":true,"fontSize":12,"color":"#B9B8CE","rotate":0},"position":"bottom","axisLine":{"show":true,"lineStyle":{"color":"#B9B8CE","width":1},"onZero":true},"axisTick":{"show":true,"length":5},"splitLine":{"show":false,"lineStyle":{"color":"#484753","width":1,"type":"solid"}},"type":"category"},"yAxis":{"show":true,"name":"","nameGap":15,"nameTextStyle":{"color":"#B9B8CE","fontSize":12},"inverse":false,"axisLabel":{"show":true,"fontSize":12,"color":"#B9B8CE","rotate":0},"position":"left","axisLine":{"show":true,"lineStyle":{"color":"#B9B8CE","width":1},"onZero":true},"axisTick":{"show":true,"length":5},"splitLine":{"show":true,"lineStyle":{"color":"#484753","width":1,"type":"solid"}},"type":"value"},"grid":{"show":false,"left":"10%","top":90,"right":"10%","bottom":"60"},"title":{"text":"","show":true,"textStyle":{"color":"#BFBFBF","fontSize":18},"subtextStyle":{"color":"#A2A2A2","fontSize":14},"top":10,"x":"center"},"tooltip":{"show":true,"trigger":"axis","axisPointer":{"type":"line"}},"dataset":{},"series":[{"type":"line","label":{"show":true,"position":"top","color":"#fff","fontSize":12},"symbolSize":5,"itemStyle":{"color":null,"borderRadius":0},"lineStyle":{"type":"solid","width":3,"color":null}},{"type":"line","label":{"show":true,"position":"top","color":"#fff","fontSize":12},"symbolSize":5,"itemStyle":{"color":null,"borderRadius":0},"lineStyle":{"type":"solid","width":3,"color":null}}],"backgroundColor":"rgba(0,0,0,0)"}'; $config->screen->chartOption['table'] = '{}'; +$config->screen->chartOption['waterpolo'] = '{}'; $config->screen->fieldConfig = new stdclass(); $config->screen->fieldConfig->bug = new stdclass();