From 7f9f2cfa4471e09b6df423a3623d8c9714d1fa56 Mon Sep 17 00:00:00 2001 From: dengbf Date: Mon, 17 Mar 2025 16:41:53 +0800 Subject: [PATCH 1/5] =?UTF-8?q?-[=E5=85=B3=E8=81=94]=20#[1375481348194304]?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=20http://192.168.0.96:8090/demo/rdm.html#/st?= =?UTF-8?q?ory-detail/939050947543040/939050947543042/1375481348194304?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/statement/widgetconfigs/index.js | 1 + .../others/autoexec-widget-config.vue | 87 ++++++++++ .../statement/widgets/define/autoexec.js | 16 ++ .../pages/report/statement/widgets/index.js | 1 + .../widgets/others/autoexec-widget.vue | 163 ++++++++++++++++++ .../report/statement/widgets/widget-list.js | 4 +- 6 files changed, 271 insertions(+), 1 deletion(-) create mode 100644 src/views/pages/report/statement/widgetconfigs/others/autoexec-widget-config.vue create mode 100644 src/views/pages/report/statement/widgets/define/autoexec.js create mode 100644 src/views/pages/report/statement/widgets/others/autoexec-widget.vue diff --git a/src/views/pages/report/statement/widgetconfigs/index.js b/src/views/pages/report/statement/widgetconfigs/index.js index 2ac94919..d47dfe3a 100644 --- a/src/views/pages/report/statement/widgetconfigs/index.js +++ b/src/views/pages/report/statement/widgetconfigs/index.js @@ -26,3 +26,4 @@ export { default as wordcloudWidgetConfig } from './others/wordcloud-widget-conf export { default as pointWidgetConfig } from './others/point-widget-config.vue'; export { default as customWidgetConfig } from './others/custom-widget-config.vue'; export { default as timeWidgetConfig } from './others/time-widget-config.vue'; +export { default as autoexecWidgetConfig } from './others/autoexec-widget-config.vue'; diff --git a/src/views/pages/report/statement/widgetconfigs/others/autoexec-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/others/autoexec-widget-config.vue new file mode 100644 index 00000000..95d2c2aa --- /dev/null +++ b/src/views/pages/report/statement/widgetconfigs/others/autoexec-widget-config.vue @@ -0,0 +1,87 @@ + + + diff --git a/src/views/pages/report/statement/widgets/define/autoexec.js b/src/views/pages/report/statement/widgets/define/autoexec.js new file mode 100644 index 00000000..da930c67 --- /dev/null +++ b/src/views/pages/report/statement/widgets/define/autoexec.js @@ -0,0 +1,16 @@ +import { $t } from '@/resources/init.js'; + +export default { + name: 'autoexec', + label: $t('page.autoexec'), + type: 'autoexec', + icon: 'tsfont-zidonghua', + widgetType: 'other', + hasCustomConfig: true, + width: 500, + height: 300, + padding: 5, + needData: true, + dataTypes: [{ value: 'dynamic', text: $t('term.report.datatype.dynamicdata') }], + config: { backgroundColor: '', backgroundImage: '', fontsize: 13, color: '' } +}; diff --git a/src/views/pages/report/statement/widgets/index.js b/src/views/pages/report/statement/widgets/index.js index 2a70be22..f25de6d7 100644 --- a/src/views/pages/report/statement/widgets/index.js +++ b/src/views/pages/report/statement/widgets/index.js @@ -29,3 +29,4 @@ export { default as mapareawidget } from './geography/maparea-widget.vue'; export { default as districtwidget } from './geography/district-widget.vue'; export { default as pointwidget } from './others/point-widget.vue'; export { default as timewidget } from './others/time-widget.vue'; +export { default as autoexecwidget } from './others/autoexec-widget.vue'; diff --git a/src/views/pages/report/statement/widgets/others/autoexec-widget.vue b/src/views/pages/report/statement/widgets/others/autoexec-widget.vue new file mode 100644 index 00000000..8fb9957c --- /dev/null +++ b/src/views/pages/report/statement/widgets/others/autoexec-widget.vue @@ -0,0 +1,163 @@ + + + diff --git a/src/views/pages/report/statement/widgets/widget-list.js b/src/views/pages/report/statement/widgets/widget-list.js index 119a6d74..ea89bb85 100644 --- a/src/views/pages/report/statement/widgets/widget-list.js +++ b/src/views/pages/report/statement/widgets/widget-list.js @@ -37,6 +37,7 @@ import { default as heatmap } from './define/heatmap.js'; import { default as wordcloud } from './define/wordcloud.js'; import { default as columnline } from './define/columnline.js'; import { default as time } from './define/time.js'; +import { default as autoexec } from './define/autoexec.js'; export const WIDGETS = [ text, @@ -69,5 +70,6 @@ export const WIDGETS = [ heatmap, wordcloud, columnline, - time + time, + autoexec ]; -- Gitee From c99f2cd6c45c3e828cb41bc455b2a81c526824a3 Mon Sep 17 00:00:00 2001 From: dengbf Date: Fri, 28 Mar 2025 10:44:48 +0800 Subject: [PATCH 2/5] =?UTF-8?q?[=E5=85=B3=E8=81=94]=20#[1375481348194304]?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=20http://192.168.0.96:8090/demo/rdm.html#/st?= =?UTF-8?q?ory-detail/939050947543040/939050947543042/1375481348194304?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customtemplate/customtemplate-viewer.vue | 372 ++--- .../original/columnline-widget-config.vue | 214 ++- .../statement/statement-layout-edit.vue | 265 ++-- .../widgetborderconfigs/gradient-config.vue | 113 ++ .../statement/widgetborderconfigs/index.js | 9 +- .../statement/widgetborders/border-list.js | 78 +- .../statement/widgetborders/gradient.vue | 200 +++ .../report/statement/widgetborders/index.js | 8 +- .../original/bar-widget-config.vue | 448 +++--- .../original/bullet-widget-config.vue | 366 +++-- .../original/column-widget-config.vue | 415 ++--- .../original/columnline-widget-config.vue | 248 +-- .../original/groupedcolumn-widget-config.vue | 430 +++--- .../original/line-widget-config.vue | 427 ++--- .../original/mline-widget-config.vue | 532 +++---- .../original/pie-widget-config.vue | 338 ++-- .../original/stackedbar-widget-config.vue | 396 ++--- .../original/stackedcolumn-widget-config.vue | 468 +++--- .../others/autoexec-widget-config.vue | 160 +- .../others/time-widget-config.vue | 157 +- .../report/statement/widgets/define/pie.js | 77 +- .../widgets/others/autoexec-widget.vue | 438 ++++-- .../report/statement/widgets/widget-base.js | 353 ++--- .../statement/widgets/widget-handler.vue | 920 +++++------ .../report/statement/widgetthemes/dark.json | 13 +- .../statement/widgetthemes/theme-dark1.json | 1376 ++++++++--------- .../statement/widgetthemes/theme-dark2.json | 1376 ++++++++--------- .../statement/widgetthemes/theme-dark3.json | 1376 ++++++++--------- .../statement/widgetthemes/theme-dark4.json | 1376 ++++++++--------- 29 files changed, 6649 insertions(+), 6300 deletions(-) create mode 100644 src/views/pages/report/statement/widgetborderconfigs/gradient-config.vue create mode 100644 src/views/pages/report/statement/widgetborders/gradient.vue diff --git a/src/resources/components/customtemplate/customtemplate-viewer.vue b/src/resources/components/customtemplate/customtemplate-viewer.vue index 25c8b336..f16607e3 100644 --- a/src/resources/components/customtemplate/customtemplate-viewer.vue +++ b/src/resources/components/customtemplate/customtemplate-viewer.vue @@ -1,185 +1,187 @@ - - + + diff --git a/src/views/pages/dashboard/widget/configs/original/columnline-widget-config.vue b/src/views/pages/dashboard/widget/configs/original/columnline-widget-config.vue index 08b9507e..1eae1bd9 100644 --- a/src/views/pages/dashboard/widget/configs/original/columnline-widget-config.vue +++ b/src/views/pages/dashboard/widget/configs/original/columnline-widget-config.vue @@ -1,114 +1,100 @@ - - - + + + diff --git a/src/views/pages/report/statement/statement-layout-edit.vue b/src/views/pages/report/statement/statement-layout-edit.vue index 660142a1..da2e1b43 100644 --- a/src/views/pages/report/statement/statement-layout-edit.vue +++ b/src/views/pages/report/statement/statement-layout-edit.vue @@ -1,132 +1,133 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetborderconfigs/gradient-config.vue b/src/views/pages/report/statement/widgetborderconfigs/gradient-config.vue new file mode 100644 index 00000000..b666c08c --- /dev/null +++ b/src/views/pages/report/statement/widgetborderconfigs/gradient-config.vue @@ -0,0 +1,113 @@ + + + diff --git a/src/views/pages/report/statement/widgetborderconfigs/index.js b/src/views/pages/report/statement/widgetborderconfigs/index.js index 3e2ef04f..84e0b849 100644 --- a/src/views/pages/report/statement/widgetborderconfigs/index.js +++ b/src/views/pages/report/statement/widgetborderconfigs/index.js @@ -1,4 +1,5 @@ -export { default as highlight_config } from './highlight-config.vue'; -export { default as twocolor_config } from './twocolor-config.vue'; -export { default as rainbow_config } from './rainbow-config.vue'; - +export { default as highlight_config } from './highlight-config.vue'; +export { default as twocolor_config } from './twocolor-config.vue'; +export { default as rainbow_config } from './rainbow-config.vue'; +export { default as gradient_config } from './gradient-config.vue'; + diff --git a/src/views/pages/report/statement/widgetborders/border-list.js b/src/views/pages/report/statement/widgetborders/border-list.js index 11c5bb46..a1ec82cc 100644 --- a/src/views/pages/report/statement/widgetborders/border-list.js +++ b/src/views/pages/report/statement/widgetborders/border-list.js @@ -1,33 +1,45 @@ -import {$t} from '@/resources/init.js'; - -export const BORDER_LIST = [ - { - name: 'highlight', - label: $t('term.report.highlightborder'), - config: { - cornersize: 8, - width: 2, - color: '#02a6b5', - cocolor: 'rgba(255,255,255,0.2)' - } - }, - { - name: 'twocolor', - label: $t('term.report.doublecoloroverlap'), - config: { - delay: 4, - width: 10, - offset: 10, - coloralpha: '#93e1d8', - colorbeta: '#aa4465' - } - }, - { - name: 'rainbow', - label: $t('term.report.rainbowfluorescence'), - config: { - delay: 20, - width: 0 - } - } -]; +import {$t} from '@/resources/init.js'; + +export const BORDER_LIST = [ + { + name: 'highlight', + label: $t('term.report.highlightborder'), + config: { + cornersize: 8, + width: 2, + color: '#02a6b5', + cocolor: 'rgba(255,255,255,0.2)' + } + }, + { + name: 'twocolor', + label: $t('term.report.doublecoloroverlap'), + config: { + delay: 4, + width: 10, + offset: 10, + coloralpha: '#93e1d8', + colorbeta: '#aa4465' + } + }, + { + name: 'rainbow', + label: $t('term.report.rainbowfluorescence'), + config: { + delay: 20, + width: 0 + } + }, + { + name: 'gradient', + label: '梯形边框', + config: { + titlefontsize: 13, + titlecolor: '#02a6b5', + cornersize: 8, + width: 2, + color: '#02a6b5', + cocolor: 'rgba(229,229,229,0.2)' + } + } +]; diff --git a/src/views/pages/report/statement/widgetborders/gradient.vue b/src/views/pages/report/statement/widgetborders/gradient.vue new file mode 100644 index 00000000..943d86fa --- /dev/null +++ b/src/views/pages/report/statement/widgetborders/gradient.vue @@ -0,0 +1,200 @@ + + + diff --git a/src/views/pages/report/statement/widgetborders/index.js b/src/views/pages/report/statement/widgetborders/index.js index 62c89b8d..0826172a 100644 --- a/src/views/pages/report/statement/widgetborders/index.js +++ b/src/views/pages/report/statement/widgetborders/index.js @@ -1,3 +1,5 @@ -export { default as highlight_border } from './highlight.vue'; -export { default as twocolor_border } from './twocolor.vue'; -export { default as rainbow_border } from './rainbow.vue'; +export { default as highlight_border } from './highlight.vue'; +export { default as twocolor_border } from './twocolor.vue'; +export { default as rainbow_border } from './rainbow.vue'; +export { default as gradient_border } from './gradient.vue'; + diff --git a/src/views/pages/report/statement/widgetconfigs/original/bar-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/bar-widget-config.vue index a7d88200..35e81730 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/bar-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/bar-widget-config.vue @@ -1,235 +1,213 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/bullet-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/bullet-widget-config.vue index 54fbcb87..0b66d561 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/bullet-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/bullet-widget-config.vue @@ -1,191 +1,175 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/column-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/column-widget-config.vue index 496cda2f..0fdd5409 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/column-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/column-widget-config.vue @@ -1,206 +1,209 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/columnline-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/columnline-widget-config.vue index a6ff65f3..b4b62672 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/columnline-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/columnline-widget-config.vue @@ -1,123 +1,125 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/groupedcolumn-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/groupedcolumn-widget-config.vue index c91fd3ec..ab02f4ab 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/groupedcolumn-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/groupedcolumn-widget-config.vue @@ -1,213 +1,217 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/line-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/line-widget-config.vue index 42403655..11921154 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/line-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/line-widget-config.vue @@ -1,212 +1,215 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/mline-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/mline-widget-config.vue index c21b7c5f..8aa13ef6 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/mline-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/mline-widget-config.vue @@ -1,264 +1,268 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/pie-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/pie-widget-config.vue index 5a2e2916..daa00cb5 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/pie-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/pie-widget-config.vue @@ -1,183 +1,155 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/stackedbar-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/stackedbar-widget-config.vue index 1efd0620..ed2a6b4c 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/stackedbar-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/stackedbar-widget-config.vue @@ -1,196 +1,200 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/original/stackedcolumn-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/original/stackedcolumn-widget-config.vue index ad6af7f3..616687fc 100644 --- a/src/views/pages/report/statement/widgetconfigs/original/stackedcolumn-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/original/stackedcolumn-widget-config.vue @@ -1,232 +1,236 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/others/autoexec-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/others/autoexec-widget-config.vue index 95d2c2aa..8b07cf8f 100644 --- a/src/views/pages/report/statement/widgetconfigs/others/autoexec-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/others/autoexec-widget-config.vue @@ -1,87 +1,73 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetconfigs/others/time-widget-config.vue b/src/views/pages/report/statement/widgetconfigs/others/time-widget-config.vue index 95d2c2aa..21a80190 100644 --- a/src/views/pages/report/statement/widgetconfigs/others/time-widget-config.vue +++ b/src/views/pages/report/statement/widgetconfigs/others/time-widget-config.vue @@ -1,87 +1,70 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgets/define/pie.js b/src/views/pages/report/statement/widgets/define/pie.js index 7d7c7700..b4306349 100644 --- a/src/views/pages/report/statement/widgets/define/pie.js +++ b/src/views/pages/report/statement/widgets/define/pie.js @@ -1,39 +1,38 @@ -import {$t} from '@/resources/init.js'; - -export default { - name: 'pie', - label: $t('term.report.chartsetting.piechart'), - type: 'pie', - icon: 'tsfont-chart-pie', - widgetType: 'basic', - hasCustomConfig: true, - width: 250, - height: 250, - padding: 5, - needData: true, - dataTypes: [{ value: 'dynamic', text: $t('term.report.datatype.dynamicdata') }], - fields: [ - { name: 'angleField', label: $t('page.valuefield'), type: 'number', isRequired: true }, - { name: 'colorField', label: $t('term.report.chartsetting.classifyfield'), type: 'text', isRequired: true } - ], - config: { - legend: { - visible: true, - position: 'bottom', - layout: 'horizontal' - }, - label: { - type: 'inner' - }, - statistic: { - content: { - style: { - overflow: 'hidden', - textOverflow: 'ellipsis', - fontSize: 12, - color: '' - } - } - } - } -}; +import {$t} from '@/resources/init.js'; + +export default { + name: 'pie', + label: $t('term.report.chartsetting.piechart'), + type: 'pie', + icon: 'tsfont-chart-pie', + widgetType: 'basic', + hasCustomConfig: true, + width: 250, + height: 250, + padding: 5, + needData: true, + dataTypes: [{ value: 'dynamic', text: $t('term.report.datatype.dynamicdata') }], + fields: [ + { name: 'angleField', label: $t('page.valuefield'), type: 'number', isRequired: true }, + { name: 'colorField', label: $t('term.report.chartsetting.classifyfield'), type: 'text', isRequired: true } + ], + config: { + legend: { + visible: true, + position: 'bottom', + layout: 'horizontal' + }, + label: { + type: 'inner' + }, + statistic: { + content: { + style: { + overflow: 'hidden', + textOverflow: 'ellipsis', + fontSize: 12 + } + } + } + } +}; diff --git a/src/views/pages/report/statement/widgets/others/autoexec-widget.vue b/src/views/pages/report/statement/widgets/others/autoexec-widget.vue index 8fb9957c..798e5397 100644 --- a/src/views/pages/report/statement/widgets/others/autoexec-widget.vue +++ b/src/views/pages/report/statement/widgets/others/autoexec-widget.vue @@ -1,163 +1,275 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgets/widget-base.js b/src/views/pages/report/statement/widgets/widget-base.js index 2be53faa..0b9d8fa4 100644 --- a/src/views/pages/report/statement/widgets/widget-base.js +++ b/src/views/pages/report/statement/widgets/widget-base.js @@ -1,173 +1,180 @@ -import * as themes from '../widgetthemes/index.js'; -export const WidgetBase = { - props: { - width: { type: Number }, - height: { type: Number }, - canvas: { type: Object }, - widget: { type: Object }, //组件数据 - widgetComponent: { type: Object } //组件定义 - }, - data() { - return { - data: [], - tableData: {}, - timer: null, - oldConfig: null, - oldChartConfig: null, - chartConfig: {} - }; - }, - methods: { - createPlot() { - //创建组件,由子组件覆盖 - }, - changeData(data) { - //刷新组件数据,由子组件继承 - }, - async createRandomData() { - //生成随机数据,返回data,由子组件继承 - }, - async getData(isFirstGetData) { - const data = []; - const params = { - dataSourceId: this.widget.datasourceId, - conditionList: this.widget.conditionList, - sortList: this.widget.sortList, - limit: this.widget.limit || 0 //必须要要给个0,否则会用pagesize分页 - }; - await this.$api.framework.datawarehouse.searchData(params).then(res => { - this.tableData = res.Return; - if (res.Return.tbodyList && res.Return.tbodyList.length > 0) { - res.Return.tbodyList.forEach(element => { - const d = {}; - if (this.widgetComponent.fields && this.widgetComponent.fields.length > 0) { - this.widgetComponent.fields.forEach(field => { - const f = this.widget.fields.find(d => d.name === field.name); - if (f) { - d[field.name] = element['field_' + f.datasourceField]; - } - }); - } else { - res.Return.theadList.forEach(head => { - if (head.name) { - //有name的字段才是数据源的数据字段 - d[head.name] = element[head.key]; - } - }); - } - data.push(d); - }); - } - this.data = data; - if (!isFirstGetData) { - //第一次加载由于组件还没加载完毕,所以不需要调用changeData - this.changeData(); - } - if (this.widget.dataInterval > 0) { - if (this.timer) { - clearTimeout(this.timer); - this.timer = null; - } - this.timer = setTimeout(() => { - this.getData(); - }, this.widget.dataInterval * 1000); - } - }); - } - }, - beforeDestroy() { - if (this.plot) { - this.plot.destroy(); - this.plot = null; - } - if (this.timer) { - clearTimeout(this.timer); - this.timer = null; - } - }, - watch: { - 'canvas.config.theme': function(val) { - if (val) { - this.$set(this.chartConfig, 'theme', themes[this.canvas.config.theme]); - } else { - this.$delete(this.chartConfig, 'theme'); - } - if (this.changeCusTheme) { - this.changeCusTheme(val); - } - this.createPlot(); - }, - widget: { - handler: async function(val, oldVal) { - const widget = val; - if (widget) { - //合并图形配置 - Object.assign(this.chartConfig, widget.config); - if (!this.oldChartConfig) { - //旧配置为空代表是首次加载 - this.oldChartConfig = this.$utils.deepClone(this.chartConfig); - if (widget.dataType === 'static' && widget.fields && widget.fields.length > 0) { - this.data = []; - widget.fields.forEach(element => { - const d = {}; - d[element.name] = element.value; - this.data.push(d); - }); - } else if (widget.dataType === 'dynamic' && widget.datasourceId && (!this.widgetComponent.fields || this.widgetComponent.fields.length == 0 || (widget.fields && widget.fields.length == this.widgetComponent.fields.length && widget.fields.filter(d => !d.datasourceField).length == 0))) { - await this.getData(true); - } else { - await this.createRandomData(); - } - this.$nextTick(() => { - //等待容器加载完毕再异步重绘 - this.createPlot(); - }); - //保存数据相关配置,必须要复制一个对象 - const config = {}; - config['fields'] = widget.fields; - config['datasourceId'] = widget.datasourceId; - config['conditionList'] = widget.conditionList; - config['sortList'] = widget.sortList; - config['limit'] = widget.limit; - config['dataInterval'] = widget.dataInterval; - config['dataType'] = widget.dataType; - this.oldConfig = this.$utils.deepClone(config); - } else if (!this.$utils.isSame(this.oldChartConfig, this.chartConfig)) { - //如果不是首次加载,则可以同步重绘 - this.createPlot(); - this.oldChartConfig = this.$utils.deepClone(this.chartConfig); - } - - //和数据相关的变化才会触发更新 - const config = {}; - config['fields'] = widget.fields; - config['datasourceId'] = widget.datasourceId; - config['conditionList'] = widget.conditionList; - config['sortList'] = widget.sortList; - config['limit'] = widget.limit; - config['dataInterval'] = widget.dataInterval; - config['dataType'] = widget.dataType; - if (!this.$utils.isSame(this.oldConfig, config)) { - if (widget.dataType === 'static' && widget.fields && widget.fields.length > 0) { - this.data = []; - widget.fields.forEach(element => { - const d = {}; - d[element.name] = element.value; - this.data.push(d); - }); - this.changeData(); - } else if (widget.dataType === 'dynamic' && widget.datasourceId && (!this.widgetComponent.fields || this.widgetComponent.fields.length == 0 || (widget.fields && widget.fields.length == this.widgetComponent.fields.length && widget.fields.filter(d => !d.datasourceField).length == 0))) { - this.getData(); - } else { - this.createRandomData(); - this.changeData(); - } - this.oldConfig = this.$utils.deepClone(config); - } - } - }, - deep: true, - immediate: true - } - } -}; +import * as themes from '../widgetthemes/index.js'; +export const WidgetBase = { + props: { + width: { type: Number }, + height: { type: Number }, + canvas: { type: Object }, + widget: { type: Object }, //组件数据 + widgetComponent: { type: Object } //组件定义 + }, + data() { + return { + data: [], + tableData: {}, + timer: null, + oldConfig: null, + oldChartConfig: null, + chartConfig: {} + }; + }, + methods: { + createPlot() { + //创建组件,由子组件覆盖 + }, + changeData(data) { + //刷新组件数据,由子组件继承 + }, + async createRandomData() { + //生成随机数据,返回data,由子组件继承 + }, + async getData(isFirstGetData) { + if (!this.widget.datasourceId) { + if (this.timer) { + clearTimeout(this.timer); + this.timer = null; + } + return false; + } + const data = []; + const params = { + dataSourceId: this.widget.datasourceId, + conditionList: this.widget.conditionList, + sortList: this.widget.sortList, + limit: this.widget.limit || 0 //必须要要给个0,否则会用pagesize分页 + }; + await this.$api.framework.datawarehouse.searchData(params).then(res => { + this.tableData = res.Return; + if (res.Return.tbodyList && res.Return.tbodyList.length > 0) { + res.Return.tbodyList.forEach(element => { + const d = {}; + if (this.widgetComponent.fields && this.widgetComponent.fields.length > 0) { + this.widgetComponent.fields.forEach(field => { + const f = this.widget.fields.find(d => d.name === field.name); + if (f) { + d[field.name] = element['field_' + f.datasourceField]; + } + }); + } else { + res.Return.theadList.forEach(head => { + if (head.name) { + //有name的字段才是数据源的数据字段 + d[head.name] = element[head.key]; + } + }); + } + data.push(d); + }); + } + this.data = data; + if (!isFirstGetData) { + //第一次加载由于组件还没加载完毕,所以不需要调用changeData + this.changeData(); + } + if (this.widget.dataInterval > 0) { + if (this.timer) { + clearTimeout(this.timer); + this.timer = null; + } + this.timer = setTimeout(() => { + this.getData(); + }, this.widget.dataInterval * 1000); + } + }); + } + }, + beforeDestroy() { + if (this.plot) { + this.plot.destroy(); + this.plot = null; + } + if (this.timer) { + clearTimeout(this.timer); + this.timer = null; + } + }, + watch: { + 'canvas.config.theme': function(val) { + if (val) { + this.$set(this.chartConfig, 'theme', themes[this.canvas.config.theme]); + } else { + this.$delete(this.chartConfig, 'theme'); + } + if (this.changeCusTheme) { + this.changeCusTheme(val); + } + this.createPlot(); + }, + widget: { + handler: async function(val, oldVal) { + const widget = val; + if (widget) { + //合并图形配置 + Object.assign(this.chartConfig, widget.config); + if (!this.oldChartConfig) { + //旧配置为空代表是首次加载 + this.oldChartConfig = this.$utils.deepClone(this.chartConfig); + if (widget.dataType === 'static' && widget.fields && widget.fields.length > 0) { + this.data = []; + widget.fields.forEach(element => { + const d = {}; + d[element.name] = element.value; + this.data.push(d); + }); + } else if (widget.dataType === 'dynamic' && widget.datasourceId && (!this.widgetComponent.fields || this.widgetComponent.fields.length == 0 || (widget.fields && widget.fields.length == this.widgetComponent.fields.length && widget.fields.filter(d => !d.datasourceField).length == 0))) { + await this.getData(true); + } else { + await this.createRandomData(); + } + this.$nextTick(() => { + //等待容器加载完毕再异步重绘 + this.createPlot(); + }); + //保存数据相关配置,必须要复制一个对象 + const config = {}; + config['fields'] = widget.fields; + config['datasourceId'] = widget.datasourceId; + config['conditionList'] = widget.conditionList; + config['sortList'] = widget.sortList; + config['limit'] = widget.limit; + config['dataInterval'] = widget.dataInterval; + config['dataType'] = widget.dataType; + this.oldConfig = this.$utils.deepClone(config); + } else if (!this.$utils.isSame(this.oldChartConfig, this.chartConfig)) { + //如果不是首次加载,则可以同步重绘 + this.createPlot(); + this.oldChartConfig = this.$utils.deepClone(this.chartConfig); + } + + //和数据相关的变化才会触发更新 + const config = {}; + config['fields'] = widget.fields; + config['datasourceId'] = widget.datasourceId; + config['conditionList'] = widget.conditionList; + config['sortList'] = widget.sortList; + config['limit'] = widget.limit; + config['dataInterval'] = widget.dataInterval; + config['dataType'] = widget.dataType; + if (!this.$utils.isSame(this.oldConfig, config)) { + if (widget.dataType === 'static' && widget.fields && widget.fields.length > 0) { + this.data = []; + widget.fields.forEach(element => { + const d = {}; + d[element.name] = element.value; + this.data.push(d); + }); + this.changeData(); + } else if (widget.dataType === 'dynamic' && widget.datasourceId && (!this.widgetComponent.fields || this.widgetComponent.fields.length == 0 || (widget.fields && widget.fields.length == this.widgetComponent.fields.length && widget.fields.filter(d => !d.datasourceField).length == 0))) { + this.getData(); + } else { + this.createRandomData(); + this.changeData(); + } + this.oldConfig = this.$utils.deepClone(config); + } + } + }, + deep: true, + immediate: true + } + } +}; diff --git a/src/views/pages/report/statement/widgets/widget-handler.vue b/src/views/pages/report/statement/widgets/widget-handler.vue index 504eef64..17c4f648 100644 --- a/src/views/pages/report/statement/widgets/widget-handler.vue +++ b/src/views/pages/report/statement/widgets/widget-handler.vue @@ -1,460 +1,460 @@ - - - + + + diff --git a/src/views/pages/report/statement/widgetthemes/dark.json b/src/views/pages/report/statement/widgetthemes/dark.json index c6fe013a..78790ad7 100644 --- a/src/views/pages/report/statement/widgetthemes/dark.json +++ b/src/views/pages/report/statement/widgetthemes/dark.json @@ -155,11 +155,7 @@ "verticalLimitLength": 0.3333333333333333 }, "circle": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, + "title": null, "grid": { "line": { "type": "line", @@ -650,6 +646,13 @@ }, "autoRotate": true }, + "StatisticText": { + "content": { + "style":{ + "fill": "#fff" + } + } + }, "bottom-axis-subTick-line": false, "styleSheet": { "brandColor": "rgba(0, 188, 212, 1)", diff --git a/src/views/pages/report/statement/widgetthemes/theme-dark1.json b/src/views/pages/report/statement/widgetthemes/theme-dark1.json index 41df0435..a7e35e2f 100644 --- a/src/views/pages/report/statement/widgetthemes/theme-dark1.json +++ b/src/views/pages/report/statement/widgetthemes/theme-dark1.json @@ -1,691 +1,687 @@ -{ - "background": "transparent", - "subColor": "rgba(255, 255, 255, 0.05)", - "semanticRed": "rgba(244, 102, 74, 1)", - "semanticGreen": "rgba(37, 184, 100, 1)", - "padding": "auto", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "columnWidthRatio": 0.5, - "maxColumnWidth": null, - "minColumnWidth": null, - "roseWidthRatio": 0.9999999, - "multiplePieWidthRatio": 0.7692307692307692, - "sequenceColors": [ - "#e1ebff", - "#c2d8ff", - "#a0c5ff", - "#8ab5fe", - "#7aa7fc", - "#6898fa", - "#558af4", - "#427de4", - "#2b6fd5", - "#0362c5" - ], - "shapes": { - "point": [ - "hollow-circle", - "hollow-square", - "hollow-bowtie", - "hollow-diamond", - "hollow-hexagon", - "hollow-triangle", - "hollow-triangle-down", - "circle", - "square", - "bowtie", - "diamond", - "hexagon", - "triangle", - "triangle-down", - "cross", - "tick", - "plus", - "hyphen", - "line" - ], - "line": [ - "line", - "dash", - "dot", - "smooth" - ], - "area": [ - "area", - "smooth", - "line", - "smooth-line" - ], - "interval": [ - "rect", - "hollow-rect", - "line", - "tick" - ] - }, - "sizes": [ - 1, - 10 - ], - "components": { - "axis": { - "common": { - "title": { - "autoRotate": true, - "position": "center", - "spacing": 12, - "style": { - "fill": "#f1f1f1", - "fontSize": 12, - "lineHeight": 12, - "textBaseline": "middle", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "label": { - "autoRotate": false, - "autoEllipsis": false, - "autoHide": { - "type": "equidistance", - "cfg": { - "minGap": 6 - } - }, - "offset": 8, - "style": { - "fill": "rgba(241, 241, 241, 1)", - "fontSize": 12, - "lineHeight": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "line": { - "style": { - "lineWidth": 1, - "stroke": "rgba(209, 209, 209, 1)" - } - }, - "grid": { - "line": { - "type": "line", - "style": { - "stroke": "rgba(70, 71, 85, 1)", - "lineWidth": 0.5, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "tickLine": { - "style": { - "lineWidth": 1, - "stroke": "rgba(209, 209, 209, 1)" - }, - "alignTick": true, - "length": 4 - }, - "subTickLine": null, - "animate": true - }, - "top": { - "position": "top", - "grid": null, - "title": null, - "verticalLimitLength": 0.5 - }, - "bottom": { - "position": "bottom", - "grid": null, - "title": null, - "verticalLimitLength": 0.5 - }, - "left": { - "position": "left", - "title": null, - "line": null, - "tickLine": null, - "verticalLimitLength": 0.3333333333333333 - }, - "right": { - "position": "right", - "title": null, - "line": null, - "tickLine": null, - "verticalLimitLength": 0.3333333333333333 - }, - "circle": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, - "grid": { - "line": { - "type": "line", - "style": { - "stroke": "rgba(70, 71, 85, 1)", - "lineWidth": 1, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "label": { - "style": { - "fill": "rgba(241, 241, 255, 1)" - } - }, - "tickLine": { - "style": { - "stroke": "rgba(209, 209, 209, 1)" - } - } - }, - "radius": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, - "grid": { - "line": { - "type": "circle", - "style": { - "stroke": "#262626", - "lineWidth": 1, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "label": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - } - } - }, - "legend": { - "common": { - "title": null, - "marker": { - "symbol": "circle", - "spacing": 8, - "style": { - "r": 4, - "fill": "#5B8FF9" - } - }, - "itemName": { - "spacing": 5, - "style": { - "fill": "rgba(241, 241, 241, 1)", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "fontSize": 12, - "lineHeight": 12, - "fontWeight": "normal", - "textAlign": "start", - "textBaseline": "middle" - } - }, - "itemStates": { - "active": { - "nameStyle": { - "opacity": 0.8 - } - }, - "unchecked": { - "nameStyle": { - "fill": "#D8D8D8" - }, - "markerStyle": { - "fill": "#D8D8D8", - "stroke": "#D8D8D8" - } - }, - "inactive": { - "nameStyle": { - "fill": "#D8D8D8" - }, - "markerStyle": { - "opacity": 0.2 - } - } - }, - "flipPage": true, - "pageNavigator": { - "marker": { - "style": { - "size": 12, - "inactiveFill": "rgba(225, 225, 225, 1)", - "inactiveOpacity": 0.45, - "fill": "rgba(225, 225, 225, 1)", - "opacity": 1 - } - }, - "text": { - "style": { - "fill": "rgba(209, 209, 209, 1)", - "fontSize": 12 - } - } - }, - "animate": false, - "maxItemWidth": 200, - "itemSpacing": 24, - "itemMarginBottom": 12, - "padding": [ - 8, - 8, - 8, - 8 - ] - }, - "right": { - "layout": "vertical", - "padding": [ - 0, - 8, - 0, - 8 - ] - }, - "left": { - "layout": "vertical", - "padding": [ - 0, - 8, - 0, - 8 - ] - }, - "top": { - "layout": "horizontal", - "padding": [ - 8, - 0, - 8, - 0 - ] - }, - "bottom": { - "layout": "horizontal", - "padding": [ - 8, - 0, - 8, - 0 - ] - }, - "continuous": { - "title": null, - "background": null, - "track": {}, - "rail": { - "type": "color", - "size": 12, - "defaultLength": 100, - "style": { - "fill": "rgba(33, 33, 33, 1)", - "stroke": null, - "lineWidth": 0 - } - }, - "label": { - "align": "rail", - "spacing": 4, - "formatter": null, - "style": { - "fill": "rgba(209, 209, 209, 1)", - "fontSize": 12, - "lineHeight": 12, - "textBaseline": "middle", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "handler": { - "size": 10, - "style": { - "fill": "#F0F0F0", - "stroke": "#BFBFBF" - } - }, - "slidable": true, - "padding": [ - 8, - 8, - 8, - 8 - ] - } - }, - "tooltip": { - "showContent": true, - "follow": true, - "showCrosshairs": false, - "showMarkers": true, - "shared": false, - "enterable": false, - "position": "auto", - "marker": { - "symbol": "circle", - "stroke": "#fff", - "shadowBlur": 10, - "shadowOffsetX": 0, - "shadowOffsetY": 0, - "shadowColor": "rgba(0,0,0,0.09)", - "lineWidth": 2, - "r": 4 - }, - "crosshairs": { - "line": { - "style": { - "stroke": "#404040", - "lineWidth": 1 - } - }, - "text": null, - "textBackground": { - "padding": 2, - "style": { - "fill": "rgba(0, 0, 0, 0.25)", - "lineWidth": 0, - "stroke": null - } - }, - "follow": false - }, - "domStyles": { - "g2-tooltip": { - "position": "absolute", - "visibility": "hidden", - "zIndex": 8, - "transition": "left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s", - "backgroundColor": "#1f1f1f", - "opacity": 0.95, - "boxShadow": "0px 2px 4px rgba(0,0,0,.5)", - "borderRadius": 10, - "color": "rgba(241, 241, 241, 1)", - "fontSize": "12px", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "lineHeight": "12px", - "padding": "0 12px 0 12px" - }, - "g2-tooltip-title": { - "marginBottom": "12px", - "marginTop": "12px" - }, - "g2-tooltip-list": { - "margin": 0, - "listStyleType": "none", - "padding": 0 - }, - "g2-tooltip-list-item": { - "listStyleType": "none", - "padding": 0, - "marginBottom": "12px", - "marginTop": "12px", - "marginLeft": 0, - "marginRight": 0 - }, - "g2-tooltip-marker": { - "width": "8px", - "height": "8px", - "borderRadius": "50%", - "display": "inline-block", - "marginRight": "8px" - }, - "g2-tooltip-value": { - "display": "inline-block", - "float": "right", - "marginLeft": "30px" - } - } - }, - "annotation": { - "arc": { - "style": { - "stroke": "#262626", - "lineWidth": 1 - }, - "animate": true - }, - "line": { - "style": { - "stroke": "#404040", - "lineDash": null, - "lineWidth": 1 - }, - "text": { - "position": "start", - "autoRotate": true, - "style": { - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "textAlign": "start", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "textBaseline": "bottom" - } - }, - "animate": true - }, - "text": { - "style": { - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "textBaseline": "middle", - "textAlign": "start", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - }, - "animate": true - }, - "region": { - "top": false, - "style": { - "lineWidth": 0, - "stroke": null, - "fill": "#FFFFFF", - "fillOpacity": 0.06 - }, - "animate": true - }, - "image": { - "top": false, - "animate": true - }, - "dataMarker": { - "top": true, - "point": { - "style": { - "r": 3, - "stroke": "#5B8FF9", - "lineWidth": 2 - } - }, - "line": { - "style": { - "stroke": "#404040", - "lineWidth": 1 - }, - "length": 16 - }, - "text": { - "style": { - "textAlign": "start", - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "direction": "upward", - "autoAdjust": true, - "animate": true - }, - "dataRegion": { - "style": { - "region": { - "fill": "#FFFFFF", - "fillOpacity": 0.06 - }, - "text": { - "textAlign": "center", - "textBaseline": "bottom", - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "animate": true - } - }, - "slider": { - "common": { - "padding": [ - 8, - 8, - 8, - 8 - ], - "backgroundStyle": { - "fill": "#416180", - "opacity": 0.05 - }, - "foregroundStyle": { - "fill": "#5B8FF9", - "opacity": 0.1 - }, - "handlerStyle": { - "width": 10, - "height": 24, - "fill": "#F7F7F7", - "opacity": 1, - "stroke": "#BFBFBF", - "lineWidth": 1, - "radius": 2, - "highLightFill": "#FFF" - }, - "textStyle": { - "fill": "#fff", - "opacity": 0.45, - "fontSize": 12, - "lineHeight": 12, - "fontWeight": "normal", - "stroke": null, - "lineWidth": 0 - } - } - }, - "scrollbar": { - "common": { - "padding": [ - 8, - 8, - 8, - 8 - ] - }, - "default": { - "style": { - "trackColor": "rgba(25, 29, 41, 1)", - "thumbColor": "rgba(70, 71, 85, 1)" - } - }, - "hover": { - "style": { - "thumbColor": "rgba(73, 82, 99, 1)" - } - } - } - }, - "labels": { - "offset": 12, - "style": { - "fill": "#fff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": null, - "lineWidth": 0 - }, - "fillColorDark": "#ffffff", - "fillColorLight": "#ffffff", - "autoRotate": true - }, - "innerLabels": { - "style": { - "fill": "#fff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": null, - "lineWidth": 0 - }, - "autoRotate": true - }, - "overflowLabels": { - "style": { - "fill": "#ffffff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": "#000", - "lineWidth": 1 - } - }, - "pieLabels": { - "labelHeight": 12, - "offset": 10, - "labelLine": { - "style": { - "lineWidth": 1 - } - }, - "autoRotate": true - }, - "bottom-axis-subTick-line": false, - "styleSheet": { - "brandColor": "#5B8FF9", - "paletteQualitative10": [ - "#5B8FF9", - "#61DDAA", - "#65789B", - "#F6BD16", - "#7262fd", - "#78D3F8", - "#9661BC", - "#F6903D", - "#008685", - "#F08BB4" - ], - "paletteQualitative20": [ - "#5B8FF9", - "#CDDDFD", - "#61DDAA", - "#CDF3E4", - "#65789B", - "#CED4DE", - "#F6BD16", - "#FCEBB9", - "#7262fd", - "#D3CEFD", - "#78D3F8", - "#D3EEF9", - "#9661BC", - "#DECFEA", - "#F6903D", - "#FFE0C7", - "#008685", - "#BBDEDE", - "#F08BB4", - "#FFE0ED" - ] - } +{ + "background": "transparent", + "subColor": "rgba(255, 255, 255, 0.05)", + "semanticRed": "rgba(244, 102, 74, 1)", + "semanticGreen": "rgba(37, 184, 100, 1)", + "padding": "auto", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "columnWidthRatio": 0.5, + "maxColumnWidth": null, + "minColumnWidth": null, + "roseWidthRatio": 0.9999999, + "multiplePieWidthRatio": 0.7692307692307692, + "sequenceColors": [ + "#e1ebff", + "#c2d8ff", + "#a0c5ff", + "#8ab5fe", + "#7aa7fc", + "#6898fa", + "#558af4", + "#427de4", + "#2b6fd5", + "#0362c5" + ], + "shapes": { + "point": [ + "hollow-circle", + "hollow-square", + "hollow-bowtie", + "hollow-diamond", + "hollow-hexagon", + "hollow-triangle", + "hollow-triangle-down", + "circle", + "square", + "bowtie", + "diamond", + "hexagon", + "triangle", + "triangle-down", + "cross", + "tick", + "plus", + "hyphen", + "line" + ], + "line": [ + "line", + "dash", + "dot", + "smooth" + ], + "area": [ + "area", + "smooth", + "line", + "smooth-line" + ], + "interval": [ + "rect", + "hollow-rect", + "line", + "tick" + ] + }, + "sizes": [ + 1, + 10 + ], + "components": { + "axis": { + "common": { + "title": { + "autoRotate": true, + "position": "center", + "spacing": 12, + "style": { + "fill": "#f1f1f1", + "fontSize": 12, + "lineHeight": 12, + "textBaseline": "middle", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "label": { + "autoRotate": false, + "autoEllipsis": false, + "autoHide": { + "type": "equidistance", + "cfg": { + "minGap": 6 + } + }, + "offset": 8, + "style": { + "fill": "rgba(241, 241, 241, 1)", + "fontSize": 12, + "lineHeight": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "line": { + "style": { + "lineWidth": 1, + "stroke": "rgba(209, 209, 209, 1)" + } + }, + "grid": { + "line": { + "type": "line", + "style": { + "stroke": "rgba(70, 71, 85, 1)", + "lineWidth": 0.5, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "tickLine": { + "style": { + "lineWidth": 1, + "stroke": "rgba(209, 209, 209, 1)" + }, + "alignTick": true, + "length": 4 + }, + "subTickLine": null, + "animate": true + }, + "top": { + "position": "top", + "grid": null, + "title": null, + "verticalLimitLength": 0.5 + }, + "bottom": { + "position": "bottom", + "grid": null, + "title": null, + "verticalLimitLength": 0.5 + }, + "left": { + "position": "left", + "title": null, + "line": null, + "tickLine": null, + "verticalLimitLength": 0.3333333333333333 + }, + "right": { + "position": "right", + "title": null, + "line": null, + "tickLine": null, + "verticalLimitLength": 0.3333333333333333 + }, + "circle": { + "title": null, + "grid": { + "line": { + "type": "line", + "style": { + "stroke": "rgba(70, 71, 85, 1)", + "lineWidth": 1, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "label": { + "style": { + "fill": "rgba(241, 241, 255, 1)" + } + }, + "tickLine": { + "style": { + "stroke": "rgba(209, 209, 209, 1)" + } + } + }, + "radius": { + "title": { + "style": { + "fill": "rgba(241, 241, 241, 1)" + } + }, + "grid": { + "line": { + "type": "circle", + "style": { + "stroke": "#262626", + "lineWidth": 1, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "label": { + "style": { + "fill": "rgba(241, 241, 241, 1)" + } + } + } + }, + "legend": { + "common": { + "title": null, + "marker": { + "symbol": "circle", + "spacing": 8, + "style": { + "r": 4, + "fill": "#5B8FF9" + } + }, + "itemName": { + "spacing": 5, + "style": { + "fill": "rgba(241, 241, 241, 1)", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "fontSize": 12, + "lineHeight": 12, + "fontWeight": "normal", + "textAlign": "start", + "textBaseline": "middle" + } + }, + "itemStates": { + "active": { + "nameStyle": { + "opacity": 0.8 + } + }, + "unchecked": { + "nameStyle": { + "fill": "#D8D8D8" + }, + "markerStyle": { + "fill": "#D8D8D8", + "stroke": "#D8D8D8" + } + }, + "inactive": { + "nameStyle": { + "fill": "#D8D8D8" + }, + "markerStyle": { + "opacity": 0.2 + } + } + }, + "flipPage": true, + "pageNavigator": { + "marker": { + "style": { + "size": 12, + "inactiveFill": "rgba(225, 225, 225, 1)", + "inactiveOpacity": 0.45, + "fill": "rgba(225, 225, 225, 1)", + "opacity": 1 + } + }, + "text": { + "style": { + "fill": "rgba(209, 209, 209, 1)", + "fontSize": 12 + } + } + }, + "animate": false, + "maxItemWidth": 200, + "itemSpacing": 24, + "itemMarginBottom": 12, + "padding": [ + 8, + 8, + 8, + 8 + ] + }, + "right": { + "layout": "vertical", + "padding": [ + 0, + 8, + 0, + 8 + ] + }, + "left": { + "layout": "vertical", + "padding": [ + 0, + 8, + 0, + 8 + ] + }, + "top": { + "layout": "horizontal", + "padding": [ + 8, + 0, + 8, + 0 + ] + }, + "bottom": { + "layout": "horizontal", + "padding": [ + 8, + 0, + 8, + 0 + ] + }, + "continuous": { + "title": null, + "background": null, + "track": {}, + "rail": { + "type": "color", + "size": 12, + "defaultLength": 100, + "style": { + "fill": "rgba(33, 33, 33, 1)", + "stroke": null, + "lineWidth": 0 + } + }, + "label": { + "align": "rail", + "spacing": 4, + "formatter": null, + "style": { + "fill": "rgba(209, 209, 209, 1)", + "fontSize": 12, + "lineHeight": 12, + "textBaseline": "middle", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "handler": { + "size": 10, + "style": { + "fill": "#F0F0F0", + "stroke": "#BFBFBF" + } + }, + "slidable": true, + "padding": [ + 8, + 8, + 8, + 8 + ] + } + }, + "tooltip": { + "showContent": true, + "follow": true, + "showCrosshairs": false, + "showMarkers": true, + "shared": false, + "enterable": false, + "position": "auto", + "marker": { + "symbol": "circle", + "stroke": "#fff", + "shadowBlur": 10, + "shadowOffsetX": 0, + "shadowOffsetY": 0, + "shadowColor": "rgba(0,0,0,0.09)", + "lineWidth": 2, + "r": 4 + }, + "crosshairs": { + "line": { + "style": { + "stroke": "#404040", + "lineWidth": 1 + } + }, + "text": null, + "textBackground": { + "padding": 2, + "style": { + "fill": "rgba(0, 0, 0, 0.25)", + "lineWidth": 0, + "stroke": null + } + }, + "follow": false + }, + "domStyles": { + "g2-tooltip": { + "position": "absolute", + "visibility": "hidden", + "zIndex": 8, + "transition": "left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s", + "backgroundColor": "#1f1f1f", + "opacity": 0.95, + "boxShadow": "0px 2px 4px rgba(0,0,0,.5)", + "borderRadius": 10, + "color": "rgba(241, 241, 241, 1)", + "fontSize": "12px", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "lineHeight": "12px", + "padding": "0 12px 0 12px" + }, + "g2-tooltip-title": { + "marginBottom": "12px", + "marginTop": "12px" + }, + "g2-tooltip-list": { + "margin": 0, + "listStyleType": "none", + "padding": 0 + }, + "g2-tooltip-list-item": { + "listStyleType": "none", + "padding": 0, + "marginBottom": "12px", + "marginTop": "12px", + "marginLeft": 0, + "marginRight": 0 + }, + "g2-tooltip-marker": { + "width": "8px", + "height": "8px", + "borderRadius": "50%", + "display": "inline-block", + "marginRight": "8px" + }, + "g2-tooltip-value": { + "display": "inline-block", + "float": "right", + "marginLeft": "30px" + } + } + }, + "annotation": { + "arc": { + "style": { + "stroke": "#262626", + "lineWidth": 1 + }, + "animate": true + }, + "line": { + "style": { + "stroke": "#404040", + "lineDash": null, + "lineWidth": 1 + }, + "text": { + "position": "start", + "autoRotate": true, + "style": { + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "textAlign": "start", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "textBaseline": "bottom" + } + }, + "animate": true + }, + "text": { + "style": { + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "textBaseline": "middle", + "textAlign": "start", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + }, + "animate": true + }, + "region": { + "top": false, + "style": { + "lineWidth": 0, + "stroke": null, + "fill": "#FFFFFF", + "fillOpacity": 0.06 + }, + "animate": true + }, + "image": { + "top": false, + "animate": true + }, + "dataMarker": { + "top": true, + "point": { + "style": { + "r": 3, + "stroke": "#5B8FF9", + "lineWidth": 2 + } + }, + "line": { + "style": { + "stroke": "#404040", + "lineWidth": 1 + }, + "length": 16 + }, + "text": { + "style": { + "textAlign": "start", + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "direction": "upward", + "autoAdjust": true, + "animate": true + }, + "dataRegion": { + "style": { + "region": { + "fill": "#FFFFFF", + "fillOpacity": 0.06 + }, + "text": { + "textAlign": "center", + "textBaseline": "bottom", + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "animate": true + } + }, + "slider": { + "common": { + "padding": [ + 8, + 8, + 8, + 8 + ], + "backgroundStyle": { + "fill": "#416180", + "opacity": 0.05 + }, + "foregroundStyle": { + "fill": "#5B8FF9", + "opacity": 0.1 + }, + "handlerStyle": { + "width": 10, + "height": 24, + "fill": "#F7F7F7", + "opacity": 1, + "stroke": "#BFBFBF", + "lineWidth": 1, + "radius": 2, + "highLightFill": "#FFF" + }, + "textStyle": { + "fill": "#fff", + "opacity": 0.45, + "fontSize": 12, + "lineHeight": 12, + "fontWeight": "normal", + "stroke": null, + "lineWidth": 0 + } + } + }, + "scrollbar": { + "common": { + "padding": [ + 8, + 8, + 8, + 8 + ] + }, + "default": { + "style": { + "trackColor": "rgba(25, 29, 41, 1)", + "thumbColor": "rgba(70, 71, 85, 1)" + } + }, + "hover": { + "style": { + "thumbColor": "rgba(73, 82, 99, 1)" + } + } + } + }, + "labels": { + "offset": 12, + "style": { + "fill": "#fff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": null, + "lineWidth": 0 + }, + "fillColorDark": "#ffffff", + "fillColorLight": "#ffffff", + "autoRotate": true + }, + "innerLabels": { + "style": { + "fill": "#fff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": null, + "lineWidth": 0 + }, + "autoRotate": true + }, + "overflowLabels": { + "style": { + "fill": "#ffffff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": "#000", + "lineWidth": 1 + } + }, + "pieLabels": { + "labelHeight": 12, + "offset": 10, + "labelLine": { + "style": { + "lineWidth": 1 + } + }, + "autoRotate": true + }, + "bottom-axis-subTick-line": false, + "styleSheet": { + "brandColor": "#5B8FF9", + "paletteQualitative10": [ + "#5B8FF9", + "#61DDAA", + "#65789B", + "#F6BD16", + "#7262fd", + "#78D3F8", + "#9661BC", + "#F6903D", + "#008685", + "#F08BB4" + ], + "paletteQualitative20": [ + "#5B8FF9", + "#CDDDFD", + "#61DDAA", + "#CDF3E4", + "#65789B", + "#CED4DE", + "#F6BD16", + "#FCEBB9", + "#7262fd", + "#D3CEFD", + "#78D3F8", + "#D3EEF9", + "#9661BC", + "#DECFEA", + "#F6903D", + "#FFE0C7", + "#008685", + "#BBDEDE", + "#F08BB4", + "#FFE0ED" + ] + } } \ No newline at end of file diff --git a/src/views/pages/report/statement/widgetthemes/theme-dark2.json b/src/views/pages/report/statement/widgetthemes/theme-dark2.json index 43aa5e26..a7763675 100644 --- a/src/views/pages/report/statement/widgetthemes/theme-dark2.json +++ b/src/views/pages/report/statement/widgetthemes/theme-dark2.json @@ -1,691 +1,687 @@ -{ - "background": "transparent", - "subColor": "rgba(255, 255, 255, 0.05)", - "semanticRed": "rgba(244, 102, 74, 1)", - "semanticGreen": "rgba(37, 184, 100, 1)", - "padding": "auto", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "columnWidthRatio": 0.5, - "maxColumnWidth": null, - "minColumnWidth": null, - "roseWidthRatio": 0.9999999, - "multiplePieWidthRatio": 0.7692307692307692, - "sequenceColors": [ - "#ffe1d0", - "#ffdecb", - "#ffbd99", - "#ff9d68", - "#ff8d59", - "#ff7d4a", - "#ff6b3b", - "#ec5b2c", - "#d84a1d", - "#c5390c" - ], - "shapes": { - "point": [ - "hollow-circle", - "hollow-square", - "hollow-bowtie", - "hollow-diamond", - "hollow-hexagon", - "hollow-triangle", - "hollow-triangle-down", - "circle", - "square", - "bowtie", - "diamond", - "hexagon", - "triangle", - "triangle-down", - "cross", - "tick", - "plus", - "hyphen", - "line" - ], - "line": [ - "line", - "dash", - "dot", - "smooth" - ], - "area": [ - "area", - "smooth", - "line", - "smooth-line" - ], - "interval": [ - "rect", - "hollow-rect", - "line", - "tick" - ] - }, - "sizes": [ - 1, - 10 - ], - "components": { - "axis": { - "common": { - "title": { - "autoRotate": true, - "position": "center", - "spacing": 12, - "style": { - "fill": "#f1f1f1", - "fontSize": 12, - "lineHeight": 12, - "textBaseline": "middle", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "label": { - "autoRotate": false, - "autoEllipsis": false, - "autoHide": { - "type": "equidistance", - "cfg": { - "minGap": 6 - } - }, - "offset": 8, - "style": { - "fill": "rgba(241, 241, 241, 1)", - "fontSize": 12, - "lineHeight": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "line": { - "style": { - "lineWidth": 1, - "stroke": "rgba(209, 209, 209, 1)" - } - }, - "grid": { - "line": { - "type": "line", - "style": { - "stroke": "rgba(70, 71, 85, 1)", - "lineWidth": 0.5, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "tickLine": { - "style": { - "lineWidth": 1, - "stroke": "rgba(209, 209, 209, 1)" - }, - "alignTick": true, - "length": 4 - }, - "subTickLine": null, - "animate": true - }, - "top": { - "position": "top", - "grid": null, - "title": null, - "verticalLimitLength": 0.5 - }, - "bottom": { - "position": "bottom", - "grid": null, - "title": null, - "verticalLimitLength": 0.5 - }, - "left": { - "position": "left", - "title": null, - "line": null, - "tickLine": null, - "verticalLimitLength": 0.3333333333333333 - }, - "right": { - "position": "right", - "title": null, - "line": null, - "tickLine": null, - "verticalLimitLength": 0.3333333333333333 - }, - "circle": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, - "grid": { - "line": { - "type": "line", - "style": { - "stroke": "rgba(70, 71, 85, 1)", - "lineWidth": 1, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "label": { - "style": { - "fill": "rgba(241, 241, 255, 1)" - } - }, - "tickLine": { - "style": { - "stroke": "rgba(209, 209, 209, 1)" - } - } - }, - "radius": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, - "grid": { - "line": { - "type": "circle", - "style": { - "stroke": "#262626", - "lineWidth": 1, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "label": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - } - } - }, - "legend": { - "common": { - "title": null, - "marker": { - "symbol": "circle", - "spacing": 8, - "style": { - "r": 4, - "fill": "#5B8FF9" - } - }, - "itemName": { - "spacing": 5, - "style": { - "fill": "rgba(241, 241, 241, 1)", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "fontSize": 12, - "lineHeight": 12, - "fontWeight": "normal", - "textAlign": "start", - "textBaseline": "middle" - } - }, - "itemStates": { - "active": { - "nameStyle": { - "opacity": 0.8 - } - }, - "unchecked": { - "nameStyle": { - "fill": "#D8D8D8" - }, - "markerStyle": { - "fill": "#D8D8D8", - "stroke": "#D8D8D8" - } - }, - "inactive": { - "nameStyle": { - "fill": "#D8D8D8" - }, - "markerStyle": { - "opacity": 0.2 - } - } - }, - "flipPage": true, - "pageNavigator": { - "marker": { - "style": { - "size": 12, - "inactiveFill": "rgba(225, 225, 225, 1)", - "inactiveOpacity": 0.45, - "fill": "rgba(225, 225, 225, 1)", - "opacity": 1 - } - }, - "text": { - "style": { - "fill": "rgba(209, 209, 209, 1)", - "fontSize": 12 - } - } - }, - "animate": false, - "maxItemWidth": 200, - "itemSpacing": 24, - "itemMarginBottom": 12, - "padding": [ - 8, - 8, - 8, - 8 - ] - }, - "right": { - "layout": "vertical", - "padding": [ - 0, - 8, - 0, - 8 - ] - }, - "left": { - "layout": "vertical", - "padding": [ - 0, - 8, - 0, - 8 - ] - }, - "top": { - "layout": "horizontal", - "padding": [ - 8, - 0, - 8, - 0 - ] - }, - "bottom": { - "layout": "horizontal", - "padding": [ - 8, - 0, - 8, - 0 - ] - }, - "continuous": { - "title": null, - "background": null, - "track": {}, - "rail": { - "type": "color", - "size": 12, - "defaultLength": 100, - "style": { - "fill": "rgba(33, 33, 33, 1)", - "stroke": null, - "lineWidth": 0 - } - }, - "label": { - "align": "rail", - "spacing": 4, - "formatter": null, - "style": { - "fill": "rgba(209, 209, 209, 1)", - "fontSize": 12, - "lineHeight": 12, - "textBaseline": "middle", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "handler": { - "size": 10, - "style": { - "fill": "#F0F0F0", - "stroke": "#BFBFBF" - } - }, - "slidable": true, - "padding": [ - 8, - 8, - 8, - 8 - ] - } - }, - "tooltip": { - "showContent": true, - "follow": true, - "showCrosshairs": false, - "showMarkers": true, - "shared": false, - "enterable": false, - "position": "auto", - "marker": { - "symbol": "circle", - "stroke": "#fff", - "shadowBlur": 10, - "shadowOffsetX": 0, - "shadowOffsetY": 0, - "shadowColor": "rgba(0,0,0,0.09)", - "lineWidth": 2, - "r": 4 - }, - "crosshairs": { - "line": { - "style": { - "stroke": "#404040", - "lineWidth": 1 - } - }, - "text": null, - "textBackground": { - "padding": 2, - "style": { - "fill": "rgba(0, 0, 0, 0.25)", - "lineWidth": 0, - "stroke": null - } - }, - "follow": false - }, - "domStyles": { - "g2-tooltip": { - "position": "absolute", - "visibility": "hidden", - "zIndex": 8, - "transition": "left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s", - "backgroundColor": "#1f1f1f", - "opacity": 0.95, - "boxShadow": "0px 2px 4px rgba(0,0,0,.5)", - "borderRadius": 10, - "color": "rgba(241, 241, 241, 1)", - "fontSize": "12px", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "lineHeight": "12px", - "padding": "0 12px 0 12px" - }, - "g2-tooltip-title": { - "marginBottom": "12px", - "marginTop": "12px" - }, - "g2-tooltip-list": { - "margin": 0, - "listStyleType": "none", - "padding": 0 - }, - "g2-tooltip-list-item": { - "listStyleType": "none", - "padding": 0, - "marginBottom": "12px", - "marginTop": "12px", - "marginLeft": 0, - "marginRight": 0 - }, - "g2-tooltip-marker": { - "width": "8px", - "height": "8px", - "borderRadius": "50%", - "display": "inline-block", - "marginRight": "8px" - }, - "g2-tooltip-value": { - "display": "inline-block", - "float": "right", - "marginLeft": "30px" - } - } - }, - "annotation": { - "arc": { - "style": { - "stroke": "#262626", - "lineWidth": 1 - }, - "animate": true - }, - "line": { - "style": { - "stroke": "#404040", - "lineDash": null, - "lineWidth": 1 - }, - "text": { - "position": "start", - "autoRotate": true, - "style": { - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "textAlign": "start", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "textBaseline": "bottom" - } - }, - "animate": true - }, - "text": { - "style": { - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "textBaseline": "middle", - "textAlign": "start", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - }, - "animate": true - }, - "region": { - "top": false, - "style": { - "lineWidth": 0, - "stroke": null, - "fill": "#FFFFFF", - "fillOpacity": 0.06 - }, - "animate": true - }, - "image": { - "top": false, - "animate": true - }, - "dataMarker": { - "top": true, - "point": { - "style": { - "r": 3, - "stroke": "#5B8FF9", - "lineWidth": 2 - } - }, - "line": { - "style": { - "stroke": "#404040", - "lineWidth": 1 - }, - "length": 16 - }, - "text": { - "style": { - "textAlign": "start", - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "direction": "upward", - "autoAdjust": true, - "animate": true - }, - "dataRegion": { - "style": { - "region": { - "fill": "#FFFFFF", - "fillOpacity": 0.06 - }, - "text": { - "textAlign": "center", - "textBaseline": "bottom", - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "animate": true - } - }, - "slider": { - "common": { - "padding": [ - 8, - 8, - 8, - 8 - ], - "backgroundStyle": { - "fill": "#416180", - "opacity": 0.05 - }, - "foregroundStyle": { - "fill": "#5B8FF9", - "opacity": 0.1 - }, - "handlerStyle": { - "width": 10, - "height": 24, - "fill": "#F7F7F7", - "opacity": 1, - "stroke": "#BFBFBF", - "lineWidth": 1, - "radius": 2, - "highLightFill": "#FFF" - }, - "textStyle": { - "fill": "#fff", - "opacity": 0.45, - "fontSize": 12, - "lineHeight": 12, - "fontWeight": "normal", - "stroke": null, - "lineWidth": 0 - } - } - }, - "scrollbar": { - "common": { - "padding": [ - 8, - 8, - 8, - 8 - ] - }, - "default": { - "style": { - "trackColor": "rgba(25, 29, 41, 1)", - "thumbColor": "rgba(70, 71, 85, 1)" - } - }, - "hover": { - "style": { - "thumbColor": "rgba(73, 82, 99, 1)" - } - } - } - }, - "labels": { - "offset": 12, - "style": { - "fill": "#fff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": null, - "lineWidth": 0 - }, - "fillColorDark": "#ffffff", - "fillColorLight": "#ffffff", - "autoRotate": true - }, - "innerLabels": { - "style": { - "fill": "#fff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": null, - "lineWidth": 0 - }, - "autoRotate": true - }, - "overflowLabels": { - "style": { - "fill": "#ffffff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": "#000", - "lineWidth": 1 - } - }, - "pieLabels": { - "labelHeight": 12, - "offset": 10, - "labelLine": { - "style": { - "lineWidth": 1 - } - }, - "autoRotate": true - }, - "bottom-axis-subTick-line": false, - "styleSheet": { - "brandColor": "#FF6B3B", - "paletteQualitative10": [ - "#FF6B3B", - "#626681", - "#FFC100", - "#9FB40F", - "#76523B", - "#DAD5B5", - "#0E8E89", - "#E19348", - "#F383A2", - "#247FEA" - ], - "paletteQualitative20": [ - "#FF6B3B", - "#626681", - "#FFC100", - "#9FB40F", - "#76523B", - "#DAD5B5", - "#0E8E89", - "#E19348", - "#F383A2", - "#247FEA", - "#2BCB95", - "#B1ABF4", - "#1D42C2", - "#1D9ED1", - "#D64BC0", - "#255634", - "#8C8C47", - "#8CDAE5", - "#8E283B", - "#791DC9" - ] - } +{ + "background": "transparent", + "subColor": "rgba(255, 255, 255, 0.05)", + "semanticRed": "rgba(244, 102, 74, 1)", + "semanticGreen": "rgba(37, 184, 100, 1)", + "padding": "auto", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "columnWidthRatio": 0.5, + "maxColumnWidth": null, + "minColumnWidth": null, + "roseWidthRatio": 0.9999999, + "multiplePieWidthRatio": 0.7692307692307692, + "sequenceColors": [ + "#ffe1d0", + "#ffdecb", + "#ffbd99", + "#ff9d68", + "#ff8d59", + "#ff7d4a", + "#ff6b3b", + "#ec5b2c", + "#d84a1d", + "#c5390c" + ], + "shapes": { + "point": [ + "hollow-circle", + "hollow-square", + "hollow-bowtie", + "hollow-diamond", + "hollow-hexagon", + "hollow-triangle", + "hollow-triangle-down", + "circle", + "square", + "bowtie", + "diamond", + "hexagon", + "triangle", + "triangle-down", + "cross", + "tick", + "plus", + "hyphen", + "line" + ], + "line": [ + "line", + "dash", + "dot", + "smooth" + ], + "area": [ + "area", + "smooth", + "line", + "smooth-line" + ], + "interval": [ + "rect", + "hollow-rect", + "line", + "tick" + ] + }, + "sizes": [ + 1, + 10 + ], + "components": { + "axis": { + "common": { + "title": { + "autoRotate": true, + "position": "center", + "spacing": 12, + "style": { + "fill": "#f1f1f1", + "fontSize": 12, + "lineHeight": 12, + "textBaseline": "middle", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "label": { + "autoRotate": false, + "autoEllipsis": false, + "autoHide": { + "type": "equidistance", + "cfg": { + "minGap": 6 + } + }, + "offset": 8, + "style": { + "fill": "rgba(241, 241, 241, 1)", + "fontSize": 12, + "lineHeight": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "line": { + "style": { + "lineWidth": 1, + "stroke": "rgba(209, 209, 209, 1)" + } + }, + "grid": { + "line": { + "type": "line", + "style": { + "stroke": "rgba(70, 71, 85, 1)", + "lineWidth": 0.5, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "tickLine": { + "style": { + "lineWidth": 1, + "stroke": "rgba(209, 209, 209, 1)" + }, + "alignTick": true, + "length": 4 + }, + "subTickLine": null, + "animate": true + }, + "top": { + "position": "top", + "grid": null, + "title": null, + "verticalLimitLength": 0.5 + }, + "bottom": { + "position": "bottom", + "grid": null, + "title": null, + "verticalLimitLength": 0.5 + }, + "left": { + "position": "left", + "title": null, + "line": null, + "tickLine": null, + "verticalLimitLength": 0.3333333333333333 + }, + "right": { + "position": "right", + "title": null, + "line": null, + "tickLine": null, + "verticalLimitLength": 0.3333333333333333 + }, + "circle": { + "title": null, + "grid": { + "line": { + "type": "line", + "style": { + "stroke": "rgba(70, 71, 85, 1)", + "lineWidth": 1, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "label": { + "style": { + "fill": "rgba(241, 241, 255, 1)" + } + }, + "tickLine": { + "style": { + "stroke": "rgba(209, 209, 209, 1)" + } + } + }, + "radius": { + "title": { + "style": { + "fill": "rgba(241, 241, 241, 1)" + } + }, + "grid": { + "line": { + "type": "circle", + "style": { + "stroke": "#262626", + "lineWidth": 1, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "label": { + "style": { + "fill": "rgba(241, 241, 241, 1)" + } + } + } + }, + "legend": { + "common": { + "title": null, + "marker": { + "symbol": "circle", + "spacing": 8, + "style": { + "r": 4, + "fill": "#5B8FF9" + } + }, + "itemName": { + "spacing": 5, + "style": { + "fill": "rgba(241, 241, 241, 1)", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "fontSize": 12, + "lineHeight": 12, + "fontWeight": "normal", + "textAlign": "start", + "textBaseline": "middle" + } + }, + "itemStates": { + "active": { + "nameStyle": { + "opacity": 0.8 + } + }, + "unchecked": { + "nameStyle": { + "fill": "#D8D8D8" + }, + "markerStyle": { + "fill": "#D8D8D8", + "stroke": "#D8D8D8" + } + }, + "inactive": { + "nameStyle": { + "fill": "#D8D8D8" + }, + "markerStyle": { + "opacity": 0.2 + } + } + }, + "flipPage": true, + "pageNavigator": { + "marker": { + "style": { + "size": 12, + "inactiveFill": "rgba(225, 225, 225, 1)", + "inactiveOpacity": 0.45, + "fill": "rgba(225, 225, 225, 1)", + "opacity": 1 + } + }, + "text": { + "style": { + "fill": "rgba(209, 209, 209, 1)", + "fontSize": 12 + } + } + }, + "animate": false, + "maxItemWidth": 200, + "itemSpacing": 24, + "itemMarginBottom": 12, + "padding": [ + 8, + 8, + 8, + 8 + ] + }, + "right": { + "layout": "vertical", + "padding": [ + 0, + 8, + 0, + 8 + ] + }, + "left": { + "layout": "vertical", + "padding": [ + 0, + 8, + 0, + 8 + ] + }, + "top": { + "layout": "horizontal", + "padding": [ + 8, + 0, + 8, + 0 + ] + }, + "bottom": { + "layout": "horizontal", + "padding": [ + 8, + 0, + 8, + 0 + ] + }, + "continuous": { + "title": null, + "background": null, + "track": {}, + "rail": { + "type": "color", + "size": 12, + "defaultLength": 100, + "style": { + "fill": "rgba(33, 33, 33, 1)", + "stroke": null, + "lineWidth": 0 + } + }, + "label": { + "align": "rail", + "spacing": 4, + "formatter": null, + "style": { + "fill": "rgba(209, 209, 209, 1)", + "fontSize": 12, + "lineHeight": 12, + "textBaseline": "middle", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "handler": { + "size": 10, + "style": { + "fill": "#F0F0F0", + "stroke": "#BFBFBF" + } + }, + "slidable": true, + "padding": [ + 8, + 8, + 8, + 8 + ] + } + }, + "tooltip": { + "showContent": true, + "follow": true, + "showCrosshairs": false, + "showMarkers": true, + "shared": false, + "enterable": false, + "position": "auto", + "marker": { + "symbol": "circle", + "stroke": "#fff", + "shadowBlur": 10, + "shadowOffsetX": 0, + "shadowOffsetY": 0, + "shadowColor": "rgba(0,0,0,0.09)", + "lineWidth": 2, + "r": 4 + }, + "crosshairs": { + "line": { + "style": { + "stroke": "#404040", + "lineWidth": 1 + } + }, + "text": null, + "textBackground": { + "padding": 2, + "style": { + "fill": "rgba(0, 0, 0, 0.25)", + "lineWidth": 0, + "stroke": null + } + }, + "follow": false + }, + "domStyles": { + "g2-tooltip": { + "position": "absolute", + "visibility": "hidden", + "zIndex": 8, + "transition": "left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s", + "backgroundColor": "#1f1f1f", + "opacity": 0.95, + "boxShadow": "0px 2px 4px rgba(0,0,0,.5)", + "borderRadius": 10, + "color": "rgba(241, 241, 241, 1)", + "fontSize": "12px", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "lineHeight": "12px", + "padding": "0 12px 0 12px" + }, + "g2-tooltip-title": { + "marginBottom": "12px", + "marginTop": "12px" + }, + "g2-tooltip-list": { + "margin": 0, + "listStyleType": "none", + "padding": 0 + }, + "g2-tooltip-list-item": { + "listStyleType": "none", + "padding": 0, + "marginBottom": "12px", + "marginTop": "12px", + "marginLeft": 0, + "marginRight": 0 + }, + "g2-tooltip-marker": { + "width": "8px", + "height": "8px", + "borderRadius": "50%", + "display": "inline-block", + "marginRight": "8px" + }, + "g2-tooltip-value": { + "display": "inline-block", + "float": "right", + "marginLeft": "30px" + } + } + }, + "annotation": { + "arc": { + "style": { + "stroke": "#262626", + "lineWidth": 1 + }, + "animate": true + }, + "line": { + "style": { + "stroke": "#404040", + "lineDash": null, + "lineWidth": 1 + }, + "text": { + "position": "start", + "autoRotate": true, + "style": { + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "textAlign": "start", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "textBaseline": "bottom" + } + }, + "animate": true + }, + "text": { + "style": { + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "textBaseline": "middle", + "textAlign": "start", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + }, + "animate": true + }, + "region": { + "top": false, + "style": { + "lineWidth": 0, + "stroke": null, + "fill": "#FFFFFF", + "fillOpacity": 0.06 + }, + "animate": true + }, + "image": { + "top": false, + "animate": true + }, + "dataMarker": { + "top": true, + "point": { + "style": { + "r": 3, + "stroke": "#5B8FF9", + "lineWidth": 2 + } + }, + "line": { + "style": { + "stroke": "#404040", + "lineWidth": 1 + }, + "length": 16 + }, + "text": { + "style": { + "textAlign": "start", + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "direction": "upward", + "autoAdjust": true, + "animate": true + }, + "dataRegion": { + "style": { + "region": { + "fill": "#FFFFFF", + "fillOpacity": 0.06 + }, + "text": { + "textAlign": "center", + "textBaseline": "bottom", + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "animate": true + } + }, + "slider": { + "common": { + "padding": [ + 8, + 8, + 8, + 8 + ], + "backgroundStyle": { + "fill": "#416180", + "opacity": 0.05 + }, + "foregroundStyle": { + "fill": "#5B8FF9", + "opacity": 0.1 + }, + "handlerStyle": { + "width": 10, + "height": 24, + "fill": "#F7F7F7", + "opacity": 1, + "stroke": "#BFBFBF", + "lineWidth": 1, + "radius": 2, + "highLightFill": "#FFF" + }, + "textStyle": { + "fill": "#fff", + "opacity": 0.45, + "fontSize": 12, + "lineHeight": 12, + "fontWeight": "normal", + "stroke": null, + "lineWidth": 0 + } + } + }, + "scrollbar": { + "common": { + "padding": [ + 8, + 8, + 8, + 8 + ] + }, + "default": { + "style": { + "trackColor": "rgba(25, 29, 41, 1)", + "thumbColor": "rgba(70, 71, 85, 1)" + } + }, + "hover": { + "style": { + "thumbColor": "rgba(73, 82, 99, 1)" + } + } + } + }, + "labels": { + "offset": 12, + "style": { + "fill": "#fff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": null, + "lineWidth": 0 + }, + "fillColorDark": "#ffffff", + "fillColorLight": "#ffffff", + "autoRotate": true + }, + "innerLabels": { + "style": { + "fill": "#fff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": null, + "lineWidth": 0 + }, + "autoRotate": true + }, + "overflowLabels": { + "style": { + "fill": "#ffffff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": "#000", + "lineWidth": 1 + } + }, + "pieLabels": { + "labelHeight": 12, + "offset": 10, + "labelLine": { + "style": { + "lineWidth": 1 + } + }, + "autoRotate": true + }, + "bottom-axis-subTick-line": false, + "styleSheet": { + "brandColor": "#FF6B3B", + "paletteQualitative10": [ + "#FF6B3B", + "#626681", + "#FFC100", + "#9FB40F", + "#76523B", + "#DAD5B5", + "#0E8E89", + "#E19348", + "#F383A2", + "#247FEA" + ], + "paletteQualitative20": [ + "#FF6B3B", + "#626681", + "#FFC100", + "#9FB40F", + "#76523B", + "#DAD5B5", + "#0E8E89", + "#E19348", + "#F383A2", + "#247FEA", + "#2BCB95", + "#B1ABF4", + "#1D42C2", + "#1D9ED1", + "#D64BC0", + "#255634", + "#8C8C47", + "#8CDAE5", + "#8E283B", + "#791DC9" + ] + } } \ No newline at end of file diff --git a/src/views/pages/report/statement/widgetthemes/theme-dark3.json b/src/views/pages/report/statement/widgetthemes/theme-dark3.json index 656792a5..3f89382f 100644 --- a/src/views/pages/report/statement/widgetthemes/theme-dark3.json +++ b/src/views/pages/report/statement/widgetthemes/theme-dark3.json @@ -1,691 +1,687 @@ -{ - "background": "transparent", - "subColor": "rgba(255, 255, 255, 0.05)", - "semanticRed": "rgba(244, 102, 74, 1)", - "semanticGreen": "rgba(37, 184, 100, 1)", - "padding": "auto", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "columnWidthRatio": 0.5, - "maxColumnWidth": null, - "minColumnWidth": null, - "roseWidthRatio": 0.9999999, - "multiplePieWidthRatio": 0.7692307692307692, - "sequenceColors": [ - "#d8daff", - "#aeb6ff", - "#7d94ff", - "#5d80fd", - "#4973fa", - "#2d66f6", - "#0359ef", - "#034ddf", - "#0241cf", - "#0035c0" - ], - "shapes": { - "point": [ - "hollow-circle", - "hollow-square", - "hollow-bowtie", - "hollow-diamond", - "hollow-hexagon", - "hollow-triangle", - "hollow-triangle-down", - "circle", - "square", - "bowtie", - "diamond", - "hexagon", - "triangle", - "triangle-down", - "cross", - "tick", - "plus", - "hyphen", - "line" - ], - "line": [ - "line", - "dash", - "dot", - "smooth" - ], - "area": [ - "area", - "smooth", - "line", - "smooth-line" - ], - "interval": [ - "rect", - "hollow-rect", - "line", - "tick" - ] - }, - "sizes": [ - 1, - 10 - ], - "components": { - "axis": { - "common": { - "title": { - "autoRotate": true, - "position": "center", - "spacing": 12, - "style": { - "fill": "#f1f1f1", - "fontSize": 12, - "lineHeight": 12, - "textBaseline": "middle", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "label": { - "autoRotate": false, - "autoEllipsis": false, - "autoHide": { - "type": "equidistance", - "cfg": { - "minGap": 6 - } - }, - "offset": 8, - "style": { - "fill": "rgba(241, 241, 241, 1)", - "fontSize": 12, - "lineHeight": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "line": { - "style": { - "lineWidth": 1, - "stroke": "rgba(209, 209, 209, 1)" - } - }, - "grid": { - "line": { - "type": "line", - "style": { - "stroke": "rgba(70, 71, 85, 1)", - "lineWidth": 0.5, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "tickLine": { - "style": { - "lineWidth": 1, - "stroke": "rgba(209, 209, 209, 1)" - }, - "alignTick": true, - "length": 4 - }, - "subTickLine": null, - "animate": true - }, - "top": { - "position": "top", - "grid": null, - "title": null, - "verticalLimitLength": 0.5 - }, - "bottom": { - "position": "bottom", - "grid": null, - "title": null, - "verticalLimitLength": 0.5 - }, - "left": { - "position": "left", - "title": null, - "line": null, - "tickLine": null, - "verticalLimitLength": 0.3333333333333333 - }, - "right": { - "position": "right", - "title": null, - "line": null, - "tickLine": null, - "verticalLimitLength": 0.3333333333333333 - }, - "circle": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, - "grid": { - "line": { - "type": "line", - "style": { - "stroke": "rgba(70, 71, 85, 1)", - "lineWidth": 1, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "label": { - "style": { - "fill": "rgba(241, 241, 255, 1)" - } - }, - "tickLine": { - "style": { - "stroke": "rgba(209, 209, 209, 1)" - } - } - }, - "radius": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, - "grid": { - "line": { - "type": "circle", - "style": { - "stroke": "#262626", - "lineWidth": 1, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "label": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - } - } - }, - "legend": { - "common": { - "title": null, - "marker": { - "symbol": "circle", - "spacing": 8, - "style": { - "r": 4, - "fill": "#5B8FF9" - } - }, - "itemName": { - "spacing": 5, - "style": { - "fill": "rgba(241, 241, 241, 1)", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "fontSize": 12, - "lineHeight": 12, - "fontWeight": "normal", - "textAlign": "start", - "textBaseline": "middle" - } - }, - "itemStates": { - "active": { - "nameStyle": { - "opacity": 0.8 - } - }, - "unchecked": { - "nameStyle": { - "fill": "#D8D8D8" - }, - "markerStyle": { - "fill": "#D8D8D8", - "stroke": "#D8D8D8" - } - }, - "inactive": { - "nameStyle": { - "fill": "#D8D8D8" - }, - "markerStyle": { - "opacity": 0.2 - } - } - }, - "flipPage": true, - "pageNavigator": { - "marker": { - "style": { - "size": 12, - "inactiveFill": "rgba(225, 225, 225, 1)", - "inactiveOpacity": 0.45, - "fill": "rgba(225, 225, 225, 1)", - "opacity": 1 - } - }, - "text": { - "style": { - "fill": "rgba(209, 209, 209, 1)", - "fontSize": 12 - } - } - }, - "animate": false, - "maxItemWidth": 200, - "itemSpacing": 24, - "itemMarginBottom": 12, - "padding": [ - 8, - 8, - 8, - 8 - ] - }, - "right": { - "layout": "vertical", - "padding": [ - 0, - 8, - 0, - 8 - ] - }, - "left": { - "layout": "vertical", - "padding": [ - 0, - 8, - 0, - 8 - ] - }, - "top": { - "layout": "horizontal", - "padding": [ - 8, - 0, - 8, - 0 - ] - }, - "bottom": { - "layout": "horizontal", - "padding": [ - 8, - 0, - 8, - 0 - ] - }, - "continuous": { - "title": null, - "background": null, - "track": {}, - "rail": { - "type": "color", - "size": 12, - "defaultLength": 100, - "style": { - "fill": "rgba(33, 33, 33, 1)", - "stroke": null, - "lineWidth": 0 - } - }, - "label": { - "align": "rail", - "spacing": 4, - "formatter": null, - "style": { - "fill": "rgba(209, 209, 209, 1)", - "fontSize": 12, - "lineHeight": 12, - "textBaseline": "middle", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "handler": { - "size": 10, - "style": { - "fill": "#F0F0F0", - "stroke": "#BFBFBF" - } - }, - "slidable": true, - "padding": [ - 8, - 8, - 8, - 8 - ] - } - }, - "tooltip": { - "showContent": true, - "follow": true, - "showCrosshairs": false, - "showMarkers": true, - "shared": false, - "enterable": false, - "position": "auto", - "marker": { - "symbol": "circle", - "stroke": "#fff", - "shadowBlur": 10, - "shadowOffsetX": 0, - "shadowOffsetY": 0, - "shadowColor": "rgba(0,0,0,0.09)", - "lineWidth": 2, - "r": 4 - }, - "crosshairs": { - "line": { - "style": { - "stroke": "#404040", - "lineWidth": 1 - } - }, - "text": null, - "textBackground": { - "padding": 2, - "style": { - "fill": "rgba(0, 0, 0, 0.25)", - "lineWidth": 0, - "stroke": null - } - }, - "follow": false - }, - "domStyles": { - "g2-tooltip": { - "position": "absolute", - "visibility": "hidden", - "zIndex": 8, - "transition": "left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s", - "backgroundColor": "#1f1f1f", - "opacity": 0.95, - "boxShadow": "0px 2px 4px rgba(0,0,0,.5)", - "borderRadius": 10, - "color": "rgba(241, 241, 241, 1)", - "fontSize": "12px", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "lineHeight": "12px", - "padding": "0 12px 0 12px" - }, - "g2-tooltip-title": { - "marginBottom": "12px", - "marginTop": "12px" - }, - "g2-tooltip-list": { - "margin": 0, - "listStyleType": "none", - "padding": 0 - }, - "g2-tooltip-list-item": { - "listStyleType": "none", - "padding": 0, - "marginBottom": "12px", - "marginTop": "12px", - "marginLeft": 0, - "marginRight": 0 - }, - "g2-tooltip-marker": { - "width": "8px", - "height": "8px", - "borderRadius": "50%", - "display": "inline-block", - "marginRight": "8px" - }, - "g2-tooltip-value": { - "display": "inline-block", - "float": "right", - "marginLeft": "30px" - } - } - }, - "annotation": { - "arc": { - "style": { - "stroke": "#262626", - "lineWidth": 1 - }, - "animate": true - }, - "line": { - "style": { - "stroke": "#404040", - "lineDash": null, - "lineWidth": 1 - }, - "text": { - "position": "start", - "autoRotate": true, - "style": { - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "textAlign": "start", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "textBaseline": "bottom" - } - }, - "animate": true - }, - "text": { - "style": { - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "textBaseline": "middle", - "textAlign": "start", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - }, - "animate": true - }, - "region": { - "top": false, - "style": { - "lineWidth": 0, - "stroke": null, - "fill": "#FFFFFF", - "fillOpacity": 0.06 - }, - "animate": true - }, - "image": { - "top": false, - "animate": true - }, - "dataMarker": { - "top": true, - "point": { - "style": { - "r": 3, - "stroke": "#5B8FF9", - "lineWidth": 2 - } - }, - "line": { - "style": { - "stroke": "#404040", - "lineWidth": 1 - }, - "length": 16 - }, - "text": { - "style": { - "textAlign": "start", - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "direction": "upward", - "autoAdjust": true, - "animate": true - }, - "dataRegion": { - "style": { - "region": { - "fill": "#FFFFFF", - "fillOpacity": 0.06 - }, - "text": { - "textAlign": "center", - "textBaseline": "bottom", - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "animate": true - } - }, - "slider": { - "common": { - "padding": [ - 8, - 8, - 8, - 8 - ], - "backgroundStyle": { - "fill": "#416180", - "opacity": 0.05 - }, - "foregroundStyle": { - "fill": "#5B8FF9", - "opacity": 0.1 - }, - "handlerStyle": { - "width": 10, - "height": 24, - "fill": "#F7F7F7", - "opacity": 1, - "stroke": "#BFBFBF", - "lineWidth": 1, - "radius": 2, - "highLightFill": "#FFF" - }, - "textStyle": { - "fill": "#fff", - "opacity": 0.45, - "fontSize": 12, - "lineHeight": 12, - "fontWeight": "normal", - "stroke": null, - "lineWidth": 0 - } - } - }, - "scrollbar": { - "common": { - "padding": [ - 8, - 8, - 8, - 8 - ] - }, - "default": { - "style": { - "trackColor": "rgba(25, 29, 41, 1)", - "thumbColor": "rgba(70, 71, 85, 1)" - } - }, - "hover": { - "style": { - "thumbColor": "rgba(73, 82, 99, 1)" - } - } - } - }, - "labels": { - "offset": 12, - "style": { - "fill": "#fff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": null, - "lineWidth": 0 - }, - "fillColorDark": "#ffffff", - "fillColorLight": "#ffffff", - "autoRotate": true - }, - "innerLabels": { - "style": { - "fill": "#fff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": null, - "lineWidth": 0 - }, - "autoRotate": true - }, - "overflowLabels": { - "style": { - "fill": "#ffffff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": "#000", - "lineWidth": 1 - } - }, - "pieLabels": { - "labelHeight": 12, - "offset": 10, - "labelLine": { - "style": { - "lineWidth": 1 - } - }, - "autoRotate": true - }, - "bottom-axis-subTick-line": false, - "styleSheet": { - "brandColor": "#025DF4", - "paletteQualitative10": [ - "#025DF4", - "#DB6BCF", - "#2498D1", - "#BBBDE6", - "#4045B2", - "#21A97A", - "#FF745A", - "#007E99", - "#FFA8A8", - "#2391FF" - ], - "paletteQualitative20": [ - "#025DF4", - "#DB6BCF", - "#2498D1", - "#BBBDE6", - "#4045B2", - "#21A97A", - "#FF745A", - "#007E99", - "#FFA8A8", - "#2391FF", - "#FFC328", - "#A0DC2C", - "#946DFF", - "#626681", - "#EB4185", - "#CD8150", - "#36BCCB", - "#327039", - "#803488", - "#83BC99" - ] - } +{ + "background": "transparent", + "subColor": "rgba(255, 255, 255, 0.05)", + "semanticRed": "rgba(244, 102, 74, 1)", + "semanticGreen": "rgba(37, 184, 100, 1)", + "padding": "auto", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "columnWidthRatio": 0.5, + "maxColumnWidth": null, + "minColumnWidth": null, + "roseWidthRatio": 0.9999999, + "multiplePieWidthRatio": 0.7692307692307692, + "sequenceColors": [ + "#d8daff", + "#aeb6ff", + "#7d94ff", + "#5d80fd", + "#4973fa", + "#2d66f6", + "#0359ef", + "#034ddf", + "#0241cf", + "#0035c0" + ], + "shapes": { + "point": [ + "hollow-circle", + "hollow-square", + "hollow-bowtie", + "hollow-diamond", + "hollow-hexagon", + "hollow-triangle", + "hollow-triangle-down", + "circle", + "square", + "bowtie", + "diamond", + "hexagon", + "triangle", + "triangle-down", + "cross", + "tick", + "plus", + "hyphen", + "line" + ], + "line": [ + "line", + "dash", + "dot", + "smooth" + ], + "area": [ + "area", + "smooth", + "line", + "smooth-line" + ], + "interval": [ + "rect", + "hollow-rect", + "line", + "tick" + ] + }, + "sizes": [ + 1, + 10 + ], + "components": { + "axis": { + "common": { + "title": { + "autoRotate": true, + "position": "center", + "spacing": 12, + "style": { + "fill": "#f1f1f1", + "fontSize": 12, + "lineHeight": 12, + "textBaseline": "middle", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "label": { + "autoRotate": false, + "autoEllipsis": false, + "autoHide": { + "type": "equidistance", + "cfg": { + "minGap": 6 + } + }, + "offset": 8, + "style": { + "fill": "rgba(241, 241, 241, 1)", + "fontSize": 12, + "lineHeight": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "line": { + "style": { + "lineWidth": 1, + "stroke": "rgba(209, 209, 209, 1)" + } + }, + "grid": { + "line": { + "type": "line", + "style": { + "stroke": "rgba(70, 71, 85, 1)", + "lineWidth": 0.5, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "tickLine": { + "style": { + "lineWidth": 1, + "stroke": "rgba(209, 209, 209, 1)" + }, + "alignTick": true, + "length": 4 + }, + "subTickLine": null, + "animate": true + }, + "top": { + "position": "top", + "grid": null, + "title": null, + "verticalLimitLength": 0.5 + }, + "bottom": { + "position": "bottom", + "grid": null, + "title": null, + "verticalLimitLength": 0.5 + }, + "left": { + "position": "left", + "title": null, + "line": null, + "tickLine": null, + "verticalLimitLength": 0.3333333333333333 + }, + "right": { + "position": "right", + "title": null, + "line": null, + "tickLine": null, + "verticalLimitLength": 0.3333333333333333 + }, + "circle": { + "title": null, + "grid": { + "line": { + "type": "line", + "style": { + "stroke": "rgba(70, 71, 85, 1)", + "lineWidth": 1, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "label": { + "style": { + "fill": "rgba(241, 241, 255, 1)" + } + }, + "tickLine": { + "style": { + "stroke": "rgba(209, 209, 209, 1)" + } + } + }, + "radius": { + "title": { + "style": { + "fill": "rgba(241, 241, 241, 1)" + } + }, + "grid": { + "line": { + "type": "circle", + "style": { + "stroke": "#262626", + "lineWidth": 1, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "label": { + "style": { + "fill": "rgba(241, 241, 241, 1)" + } + } + } + }, + "legend": { + "common": { + "title": null, + "marker": { + "symbol": "circle", + "spacing": 8, + "style": { + "r": 4, + "fill": "#5B8FF9" + } + }, + "itemName": { + "spacing": 5, + "style": { + "fill": "rgba(241, 241, 241, 1)", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "fontSize": 12, + "lineHeight": 12, + "fontWeight": "normal", + "textAlign": "start", + "textBaseline": "middle" + } + }, + "itemStates": { + "active": { + "nameStyle": { + "opacity": 0.8 + } + }, + "unchecked": { + "nameStyle": { + "fill": "#D8D8D8" + }, + "markerStyle": { + "fill": "#D8D8D8", + "stroke": "#D8D8D8" + } + }, + "inactive": { + "nameStyle": { + "fill": "#D8D8D8" + }, + "markerStyle": { + "opacity": 0.2 + } + } + }, + "flipPage": true, + "pageNavigator": { + "marker": { + "style": { + "size": 12, + "inactiveFill": "rgba(225, 225, 225, 1)", + "inactiveOpacity": 0.45, + "fill": "rgba(225, 225, 225, 1)", + "opacity": 1 + } + }, + "text": { + "style": { + "fill": "rgba(209, 209, 209, 1)", + "fontSize": 12 + } + } + }, + "animate": false, + "maxItemWidth": 200, + "itemSpacing": 24, + "itemMarginBottom": 12, + "padding": [ + 8, + 8, + 8, + 8 + ] + }, + "right": { + "layout": "vertical", + "padding": [ + 0, + 8, + 0, + 8 + ] + }, + "left": { + "layout": "vertical", + "padding": [ + 0, + 8, + 0, + 8 + ] + }, + "top": { + "layout": "horizontal", + "padding": [ + 8, + 0, + 8, + 0 + ] + }, + "bottom": { + "layout": "horizontal", + "padding": [ + 8, + 0, + 8, + 0 + ] + }, + "continuous": { + "title": null, + "background": null, + "track": {}, + "rail": { + "type": "color", + "size": 12, + "defaultLength": 100, + "style": { + "fill": "rgba(33, 33, 33, 1)", + "stroke": null, + "lineWidth": 0 + } + }, + "label": { + "align": "rail", + "spacing": 4, + "formatter": null, + "style": { + "fill": "rgba(209, 209, 209, 1)", + "fontSize": 12, + "lineHeight": 12, + "textBaseline": "middle", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "handler": { + "size": 10, + "style": { + "fill": "#F0F0F0", + "stroke": "#BFBFBF" + } + }, + "slidable": true, + "padding": [ + 8, + 8, + 8, + 8 + ] + } + }, + "tooltip": { + "showContent": true, + "follow": true, + "showCrosshairs": false, + "showMarkers": true, + "shared": false, + "enterable": false, + "position": "auto", + "marker": { + "symbol": "circle", + "stroke": "#fff", + "shadowBlur": 10, + "shadowOffsetX": 0, + "shadowOffsetY": 0, + "shadowColor": "rgba(0,0,0,0.09)", + "lineWidth": 2, + "r": 4 + }, + "crosshairs": { + "line": { + "style": { + "stroke": "#404040", + "lineWidth": 1 + } + }, + "text": null, + "textBackground": { + "padding": 2, + "style": { + "fill": "rgba(0, 0, 0, 0.25)", + "lineWidth": 0, + "stroke": null + } + }, + "follow": false + }, + "domStyles": { + "g2-tooltip": { + "position": "absolute", + "visibility": "hidden", + "zIndex": 8, + "transition": "left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s", + "backgroundColor": "#1f1f1f", + "opacity": 0.95, + "boxShadow": "0px 2px 4px rgba(0,0,0,.5)", + "borderRadius": 10, + "color": "rgba(241, 241, 241, 1)", + "fontSize": "12px", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "lineHeight": "12px", + "padding": "0 12px 0 12px" + }, + "g2-tooltip-title": { + "marginBottom": "12px", + "marginTop": "12px" + }, + "g2-tooltip-list": { + "margin": 0, + "listStyleType": "none", + "padding": 0 + }, + "g2-tooltip-list-item": { + "listStyleType": "none", + "padding": 0, + "marginBottom": "12px", + "marginTop": "12px", + "marginLeft": 0, + "marginRight": 0 + }, + "g2-tooltip-marker": { + "width": "8px", + "height": "8px", + "borderRadius": "50%", + "display": "inline-block", + "marginRight": "8px" + }, + "g2-tooltip-value": { + "display": "inline-block", + "float": "right", + "marginLeft": "30px" + } + } + }, + "annotation": { + "arc": { + "style": { + "stroke": "#262626", + "lineWidth": 1 + }, + "animate": true + }, + "line": { + "style": { + "stroke": "#404040", + "lineDash": null, + "lineWidth": 1 + }, + "text": { + "position": "start", + "autoRotate": true, + "style": { + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "textAlign": "start", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "textBaseline": "bottom" + } + }, + "animate": true + }, + "text": { + "style": { + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "textBaseline": "middle", + "textAlign": "start", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + }, + "animate": true + }, + "region": { + "top": false, + "style": { + "lineWidth": 0, + "stroke": null, + "fill": "#FFFFFF", + "fillOpacity": 0.06 + }, + "animate": true + }, + "image": { + "top": false, + "animate": true + }, + "dataMarker": { + "top": true, + "point": { + "style": { + "r": 3, + "stroke": "#5B8FF9", + "lineWidth": 2 + } + }, + "line": { + "style": { + "stroke": "#404040", + "lineWidth": 1 + }, + "length": 16 + }, + "text": { + "style": { + "textAlign": "start", + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "direction": "upward", + "autoAdjust": true, + "animate": true + }, + "dataRegion": { + "style": { + "region": { + "fill": "#FFFFFF", + "fillOpacity": 0.06 + }, + "text": { + "textAlign": "center", + "textBaseline": "bottom", + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "animate": true + } + }, + "slider": { + "common": { + "padding": [ + 8, + 8, + 8, + 8 + ], + "backgroundStyle": { + "fill": "#416180", + "opacity": 0.05 + }, + "foregroundStyle": { + "fill": "#5B8FF9", + "opacity": 0.1 + }, + "handlerStyle": { + "width": 10, + "height": 24, + "fill": "#F7F7F7", + "opacity": 1, + "stroke": "#BFBFBF", + "lineWidth": 1, + "radius": 2, + "highLightFill": "#FFF" + }, + "textStyle": { + "fill": "#fff", + "opacity": 0.45, + "fontSize": 12, + "lineHeight": 12, + "fontWeight": "normal", + "stroke": null, + "lineWidth": 0 + } + } + }, + "scrollbar": { + "common": { + "padding": [ + 8, + 8, + 8, + 8 + ] + }, + "default": { + "style": { + "trackColor": "rgba(25, 29, 41, 1)", + "thumbColor": "rgba(70, 71, 85, 1)" + } + }, + "hover": { + "style": { + "thumbColor": "rgba(73, 82, 99, 1)" + } + } + } + }, + "labels": { + "offset": 12, + "style": { + "fill": "#fff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": null, + "lineWidth": 0 + }, + "fillColorDark": "#ffffff", + "fillColorLight": "#ffffff", + "autoRotate": true + }, + "innerLabels": { + "style": { + "fill": "#fff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": null, + "lineWidth": 0 + }, + "autoRotate": true + }, + "overflowLabels": { + "style": { + "fill": "#ffffff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": "#000", + "lineWidth": 1 + } + }, + "pieLabels": { + "labelHeight": 12, + "offset": 10, + "labelLine": { + "style": { + "lineWidth": 1 + } + }, + "autoRotate": true + }, + "bottom-axis-subTick-line": false, + "styleSheet": { + "brandColor": "#025DF4", + "paletteQualitative10": [ + "#025DF4", + "#DB6BCF", + "#2498D1", + "#BBBDE6", + "#4045B2", + "#21A97A", + "#FF745A", + "#007E99", + "#FFA8A8", + "#2391FF" + ], + "paletteQualitative20": [ + "#025DF4", + "#DB6BCF", + "#2498D1", + "#BBBDE6", + "#4045B2", + "#21A97A", + "#FF745A", + "#007E99", + "#FFA8A8", + "#2391FF", + "#FFC328", + "#A0DC2C", + "#946DFF", + "#626681", + "#EB4185", + "#CD8150", + "#36BCCB", + "#327039", + "#803488", + "#83BC99" + ] + } } \ No newline at end of file diff --git a/src/views/pages/report/statement/widgetthemes/theme-dark4.json b/src/views/pages/report/statement/widgetthemes/theme-dark4.json index 2d2dad4d..8c59f0ba 100644 --- a/src/views/pages/report/statement/widgetthemes/theme-dark4.json +++ b/src/views/pages/report/statement/widgetthemes/theme-dark4.json @@ -1,691 +1,687 @@ -{ - "background": "transparent", - "subColor": "rgba(255, 255, 255, 0.05)", - "semanticRed": "rgba(244, 102, 74, 1)", - "semanticGreen": "rgba(37, 184, 100, 1)", - "padding": "auto", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "columnWidthRatio": 0.5, - "maxColumnWidth": null, - "minColumnWidth": null, - "roseWidthRatio": 0.9999999, - "multiplePieWidthRatio": 0.7692307692307692, - "sequenceColors": [ - "#d8daff", - "#aeb6ff", - "#7d94ff", - "#5d80fd", - "#4973fa", - "#2d66f6", - "#0359ef", - "#034ddf", - "#0241cf", - "#0035c0" - ], - "shapes": { - "point": [ - "hollow-circle", - "hollow-square", - "hollow-bowtie", - "hollow-diamond", - "hollow-hexagon", - "hollow-triangle", - "hollow-triangle-down", - "circle", - "square", - "bowtie", - "diamond", - "hexagon", - "triangle", - "triangle-down", - "cross", - "tick", - "plus", - "hyphen", - "line" - ], - "line": [ - "line", - "dash", - "dot", - "smooth" - ], - "area": [ - "area", - "smooth", - "line", - "smooth-line" - ], - "interval": [ - "rect", - "hollow-rect", - "line", - "tick" - ] - }, - "sizes": [ - 1, - 10 - ], - "components": { - "axis": { - "common": { - "title": { - "autoRotate": true, - "position": "center", - "spacing": 12, - "style": { - "fill": "#f1f1f1", - "fontSize": 12, - "lineHeight": 12, - "textBaseline": "middle", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "label": { - "autoRotate": false, - "autoEllipsis": false, - "autoHide": { - "type": "equidistance", - "cfg": { - "minGap": 6 - } - }, - "offset": 8, - "style": { - "fill": "rgba(241, 241, 241, 1)", - "fontSize": 12, - "lineHeight": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "line": { - "style": { - "lineWidth": 1, - "stroke": "rgba(209, 209, 209, 1)" - } - }, - "grid": { - "line": { - "type": "line", - "style": { - "stroke": "rgba(70, 71, 85, 1)", - "lineWidth": 0.5, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "tickLine": { - "style": { - "lineWidth": 1, - "stroke": "rgba(209, 209, 209, 1)" - }, - "alignTick": true, - "length": 4 - }, - "subTickLine": null, - "animate": true - }, - "top": { - "position": "top", - "grid": null, - "title": null, - "verticalLimitLength": 0.5 - }, - "bottom": { - "position": "bottom", - "grid": null, - "title": null, - "verticalLimitLength": 0.5 - }, - "left": { - "position": "left", - "title": null, - "line": null, - "tickLine": null, - "verticalLimitLength": 0.3333333333333333 - }, - "right": { - "position": "right", - "title": null, - "line": null, - "tickLine": null, - "verticalLimitLength": 0.3333333333333333 - }, - "circle": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, - "grid": { - "line": { - "type": "line", - "style": { - "stroke": "rgba(70, 71, 85, 1)", - "lineWidth": 1, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "label": { - "style": { - "fill": "rgba(241, 241, 255, 1)" - } - }, - "tickLine": { - "style": { - "stroke": "rgba(209, 209, 209, 1)" - } - } - }, - "radius": { - "title": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - }, - "grid": { - "line": { - "type": "circle", - "style": { - "stroke": "#262626", - "lineWidth": 1, - "lineDash": null - } - }, - "alignTick": true, - "animate": true - }, - "label": { - "style": { - "fill": "rgba(241, 241, 241, 1)" - } - } - } - }, - "legend": { - "common": { - "title": null, - "marker": { - "symbol": "circle", - "spacing": 8, - "style": { - "r": 4, - "fill": "#5B8FF9" - } - }, - "itemName": { - "spacing": 5, - "style": { - "fill": "rgba(241, 241, 241, 1)", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "fontSize": 12, - "lineHeight": 12, - "fontWeight": "normal", - "textAlign": "start", - "textBaseline": "middle" - } - }, - "itemStates": { - "active": { - "nameStyle": { - "opacity": 0.8 - } - }, - "unchecked": { - "nameStyle": { - "fill": "#D8D8D8" - }, - "markerStyle": { - "fill": "#D8D8D8", - "stroke": "#D8D8D8" - } - }, - "inactive": { - "nameStyle": { - "fill": "#D8D8D8" - }, - "markerStyle": { - "opacity": 0.2 - } - } - }, - "flipPage": true, - "pageNavigator": { - "marker": { - "style": { - "size": 12, - "inactiveFill": "rgba(225, 225, 225, 1)", - "inactiveOpacity": 0.45, - "fill": "rgba(225, 225, 225, 1)", - "opacity": 1 - } - }, - "text": { - "style": { - "fill": "rgba(209, 209, 209, 1)", - "fontSize": 12 - } - } - }, - "animate": false, - "maxItemWidth": 200, - "itemSpacing": 24, - "itemMarginBottom": 12, - "padding": [ - 8, - 8, - 8, - 8 - ] - }, - "right": { - "layout": "vertical", - "padding": [ - 0, - 8, - 0, - 8 - ] - }, - "left": { - "layout": "vertical", - "padding": [ - 0, - 8, - 0, - 8 - ] - }, - "top": { - "layout": "horizontal", - "padding": [ - 8, - 0, - 8, - 0 - ] - }, - "bottom": { - "layout": "horizontal", - "padding": [ - 8, - 0, - 8, - 0 - ] - }, - "continuous": { - "title": null, - "background": null, - "track": {}, - "rail": { - "type": "color", - "size": 12, - "defaultLength": 100, - "style": { - "fill": "rgba(33, 33, 33, 1)", - "stroke": null, - "lineWidth": 0 - } - }, - "label": { - "align": "rail", - "spacing": 4, - "formatter": null, - "style": { - "fill": "rgba(209, 209, 209, 1)", - "fontSize": 12, - "lineHeight": 12, - "textBaseline": "middle", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "handler": { - "size": 10, - "style": { - "fill": "#F0F0F0", - "stroke": "#BFBFBF" - } - }, - "slidable": true, - "padding": [ - 8, - 8, - 8, - 8 - ] - } - }, - "tooltip": { - "showContent": true, - "follow": true, - "showCrosshairs": false, - "showMarkers": true, - "shared": false, - "enterable": false, - "position": "auto", - "marker": { - "symbol": "circle", - "stroke": "#fff", - "shadowBlur": 10, - "shadowOffsetX": 0, - "shadowOffsetY": 0, - "shadowColor": "rgba(0,0,0,0.09)", - "lineWidth": 2, - "r": 4 - }, - "crosshairs": { - "line": { - "style": { - "stroke": "#404040", - "lineWidth": 1 - } - }, - "text": null, - "textBackground": { - "padding": 2, - "style": { - "fill": "rgba(0, 0, 0, 0.25)", - "lineWidth": 0, - "stroke": null - } - }, - "follow": false - }, - "domStyles": { - "g2-tooltip": { - "position": "absolute", - "visibility": "hidden", - "zIndex": 8, - "transition": "left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s", - "backgroundColor": "#1f1f1f", - "opacity": 0.95, - "boxShadow": "0px 2px 4px rgba(0,0,0,.5)", - "borderRadius": 10, - "color": "rgba(241, 241, 241, 1)", - "fontSize": "12px", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "lineHeight": "12px", - "padding": "0 12px 0 12px" - }, - "g2-tooltip-title": { - "marginBottom": "12px", - "marginTop": "12px" - }, - "g2-tooltip-list": { - "margin": 0, - "listStyleType": "none", - "padding": 0 - }, - "g2-tooltip-list-item": { - "listStyleType": "none", - "padding": 0, - "marginBottom": "12px", - "marginTop": "12px", - "marginLeft": 0, - "marginRight": 0 - }, - "g2-tooltip-marker": { - "width": "8px", - "height": "8px", - "borderRadius": "50%", - "display": "inline-block", - "marginRight": "8px" - }, - "g2-tooltip-value": { - "display": "inline-block", - "float": "right", - "marginLeft": "30px" - } - } - }, - "annotation": { - "arc": { - "style": { - "stroke": "#262626", - "lineWidth": 1 - }, - "animate": true - }, - "line": { - "style": { - "stroke": "#404040", - "lineDash": null, - "lineWidth": 1 - }, - "text": { - "position": "start", - "autoRotate": true, - "style": { - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "textAlign": "start", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "textBaseline": "bottom" - } - }, - "animate": true - }, - "text": { - "style": { - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "textBaseline": "middle", - "textAlign": "start", - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - }, - "animate": true - }, - "region": { - "top": false, - "style": { - "lineWidth": 0, - "stroke": null, - "fill": "#FFFFFF", - "fillOpacity": 0.06 - }, - "animate": true - }, - "image": { - "top": false, - "animate": true - }, - "dataMarker": { - "top": true, - "point": { - "style": { - "r": 3, - "stroke": "#5B8FF9", - "lineWidth": 2 - } - }, - "line": { - "style": { - "stroke": "#404040", - "lineWidth": 1 - }, - "length": 16 - }, - "text": { - "style": { - "textAlign": "start", - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "direction": "upward", - "autoAdjust": true, - "animate": true - }, - "dataRegion": { - "style": { - "region": { - "fill": "#FFFFFF", - "fillOpacity": 0.06 - }, - "text": { - "textAlign": "center", - "textBaseline": "bottom", - "fill": "#A6A6A6", - "stroke": null, - "lineWidth": 0, - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" - } - }, - "animate": true - } - }, - "slider": { - "common": { - "padding": [ - 8, - 8, - 8, - 8 - ], - "backgroundStyle": { - "fill": "#416180", - "opacity": 0.05 - }, - "foregroundStyle": { - "fill": "#5B8FF9", - "opacity": 0.1 - }, - "handlerStyle": { - "width": 10, - "height": 24, - "fill": "#F7F7F7", - "opacity": 1, - "stroke": "#BFBFBF", - "lineWidth": 1, - "radius": 2, - "highLightFill": "#FFF" - }, - "textStyle": { - "fill": "#fff", - "opacity": 0.45, - "fontSize": 12, - "lineHeight": 12, - "fontWeight": "normal", - "stroke": null, - "lineWidth": 0 - } - } - }, - "scrollbar": { - "common": { - "padding": [ - 8, - 8, - 8, - 8 - ] - }, - "default": { - "style": { - "trackColor": "rgba(25, 29, 41, 1)", - "thumbColor": "rgba(70, 71, 85, 1)" - } - }, - "hover": { - "style": { - "thumbColor": "rgba(73, 82, 99, 1)" - } - } - } - }, - "labels": { - "offset": 12, - "style": { - "fill": "#fff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": null, - "lineWidth": 0 - }, - "fillColorDark": "#ffffff", - "fillColorLight": "#ffffff", - "autoRotate": true - }, - "innerLabels": { - "style": { - "fill": "#fff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": null, - "lineWidth": 0 - }, - "autoRotate": true - }, - "overflowLabels": { - "style": { - "fill": "#ffffff", - "fontSize": 12, - "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", - "stroke": "#000", - "lineWidth": 1 - } - }, - "pieLabels": { - "labelHeight": 12, - "offset": 10, - "labelLine": { - "style": { - "lineWidth": 1 - } - }, - "autoRotate": true - }, - "bottom-axis-subTick-line": false, - "styleSheet": { - "brandColor": "#FF4500", - "paletteQualitative10": [ - "#FF4500", - "#1AAF8B", - "#406C85", - "#F6BD16", - "#B40F0F", - "#2FB8FC", - "#4435FF", - "#FF5CA2", - "#BBE800", - "#FE8A26" - ], - "paletteQualitative20": [ - "#FF4500", - "#1AAF8B", - "#406C85", - "#F6BD16", - "#B40F0F", - "#2FB8FC", - "#4435FF", - "#FF5CA2", - "#BBE800", - "#FE8A26", - "#946DFF", - "#6C3E00", - "#6193FF", - "#FF988E", - "#36BCCB", - "#004988", - "#FFCF9D", - "#CCDC8A", - "#8D00A1", - "#1CC25E" - ] - } +{ + "background": "transparent", + "subColor": "rgba(255, 255, 255, 0.05)", + "semanticRed": "rgba(244, 102, 74, 1)", + "semanticGreen": "rgba(37, 184, 100, 1)", + "padding": "auto", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "columnWidthRatio": 0.5, + "maxColumnWidth": null, + "minColumnWidth": null, + "roseWidthRatio": 0.9999999, + "multiplePieWidthRatio": 0.7692307692307692, + "sequenceColors": [ + "#d8daff", + "#aeb6ff", + "#7d94ff", + "#5d80fd", + "#4973fa", + "#2d66f6", + "#0359ef", + "#034ddf", + "#0241cf", + "#0035c0" + ], + "shapes": { + "point": [ + "hollow-circle", + "hollow-square", + "hollow-bowtie", + "hollow-diamond", + "hollow-hexagon", + "hollow-triangle", + "hollow-triangle-down", + "circle", + "square", + "bowtie", + "diamond", + "hexagon", + "triangle", + "triangle-down", + "cross", + "tick", + "plus", + "hyphen", + "line" + ], + "line": [ + "line", + "dash", + "dot", + "smooth" + ], + "area": [ + "area", + "smooth", + "line", + "smooth-line" + ], + "interval": [ + "rect", + "hollow-rect", + "line", + "tick" + ] + }, + "sizes": [ + 1, + 10 + ], + "components": { + "axis": { + "common": { + "title": { + "autoRotate": true, + "position": "center", + "spacing": 12, + "style": { + "fill": "#f1f1f1", + "fontSize": 12, + "lineHeight": 12, + "textBaseline": "middle", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "label": { + "autoRotate": false, + "autoEllipsis": false, + "autoHide": { + "type": "equidistance", + "cfg": { + "minGap": 6 + } + }, + "offset": 8, + "style": { + "fill": "rgba(241, 241, 241, 1)", + "fontSize": 12, + "lineHeight": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "line": { + "style": { + "lineWidth": 1, + "stroke": "rgba(209, 209, 209, 1)" + } + }, + "grid": { + "line": { + "type": "line", + "style": { + "stroke": "rgba(70, 71, 85, 1)", + "lineWidth": 0.5, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "tickLine": { + "style": { + "lineWidth": 1, + "stroke": "rgba(209, 209, 209, 1)" + }, + "alignTick": true, + "length": 4 + }, + "subTickLine": null, + "animate": true + }, + "top": { + "position": "top", + "grid": null, + "title": null, + "verticalLimitLength": 0.5 + }, + "bottom": { + "position": "bottom", + "grid": null, + "title": null, + "verticalLimitLength": 0.5 + }, + "left": { + "position": "left", + "title": null, + "line": null, + "tickLine": null, + "verticalLimitLength": 0.3333333333333333 + }, + "right": { + "position": "right", + "title": null, + "line": null, + "tickLine": null, + "verticalLimitLength": 0.3333333333333333 + }, + "circle": { + "title": null, + "grid": { + "line": { + "type": "line", + "style": { + "stroke": "rgba(70, 71, 85, 1)", + "lineWidth": 1, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "label": { + "style": { + "fill": "rgba(241, 241, 255, 1)" + } + }, + "tickLine": { + "style": { + "stroke": "rgba(209, 209, 209, 1)" + } + } + }, + "radius": { + "title": { + "style": { + "fill": "rgba(241, 241, 241, 1)" + } + }, + "grid": { + "line": { + "type": "circle", + "style": { + "stroke": "#262626", + "lineWidth": 1, + "lineDash": null + } + }, + "alignTick": true, + "animate": true + }, + "label": { + "style": { + "fill": "rgba(241, 241, 241, 1)" + } + } + } + }, + "legend": { + "common": { + "title": null, + "marker": { + "symbol": "circle", + "spacing": 8, + "style": { + "r": 4, + "fill": "#5B8FF9" + } + }, + "itemName": { + "spacing": 5, + "style": { + "fill": "rgba(241, 241, 241, 1)", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "fontSize": 12, + "lineHeight": 12, + "fontWeight": "normal", + "textAlign": "start", + "textBaseline": "middle" + } + }, + "itemStates": { + "active": { + "nameStyle": { + "opacity": 0.8 + } + }, + "unchecked": { + "nameStyle": { + "fill": "#D8D8D8" + }, + "markerStyle": { + "fill": "#D8D8D8", + "stroke": "#D8D8D8" + } + }, + "inactive": { + "nameStyle": { + "fill": "#D8D8D8" + }, + "markerStyle": { + "opacity": 0.2 + } + } + }, + "flipPage": true, + "pageNavigator": { + "marker": { + "style": { + "size": 12, + "inactiveFill": "rgba(225, 225, 225, 1)", + "inactiveOpacity": 0.45, + "fill": "rgba(225, 225, 225, 1)", + "opacity": 1 + } + }, + "text": { + "style": { + "fill": "rgba(209, 209, 209, 1)", + "fontSize": 12 + } + } + }, + "animate": false, + "maxItemWidth": 200, + "itemSpacing": 24, + "itemMarginBottom": 12, + "padding": [ + 8, + 8, + 8, + 8 + ] + }, + "right": { + "layout": "vertical", + "padding": [ + 0, + 8, + 0, + 8 + ] + }, + "left": { + "layout": "vertical", + "padding": [ + 0, + 8, + 0, + 8 + ] + }, + "top": { + "layout": "horizontal", + "padding": [ + 8, + 0, + 8, + 0 + ] + }, + "bottom": { + "layout": "horizontal", + "padding": [ + 8, + 0, + 8, + 0 + ] + }, + "continuous": { + "title": null, + "background": null, + "track": {}, + "rail": { + "type": "color", + "size": 12, + "defaultLength": 100, + "style": { + "fill": "rgba(33, 33, 33, 1)", + "stroke": null, + "lineWidth": 0 + } + }, + "label": { + "align": "rail", + "spacing": 4, + "formatter": null, + "style": { + "fill": "rgba(209, 209, 209, 1)", + "fontSize": 12, + "lineHeight": 12, + "textBaseline": "middle", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "handler": { + "size": 10, + "style": { + "fill": "#F0F0F0", + "stroke": "#BFBFBF" + } + }, + "slidable": true, + "padding": [ + 8, + 8, + 8, + 8 + ] + } + }, + "tooltip": { + "showContent": true, + "follow": true, + "showCrosshairs": false, + "showMarkers": true, + "shared": false, + "enterable": false, + "position": "auto", + "marker": { + "symbol": "circle", + "stroke": "#fff", + "shadowBlur": 10, + "shadowOffsetX": 0, + "shadowOffsetY": 0, + "shadowColor": "rgba(0,0,0,0.09)", + "lineWidth": 2, + "r": 4 + }, + "crosshairs": { + "line": { + "style": { + "stroke": "#404040", + "lineWidth": 1 + } + }, + "text": null, + "textBackground": { + "padding": 2, + "style": { + "fill": "rgba(0, 0, 0, 0.25)", + "lineWidth": 0, + "stroke": null + } + }, + "follow": false + }, + "domStyles": { + "g2-tooltip": { + "position": "absolute", + "visibility": "hidden", + "zIndex": 8, + "transition": "left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s", + "backgroundColor": "#1f1f1f", + "opacity": 0.95, + "boxShadow": "0px 2px 4px rgba(0,0,0,.5)", + "borderRadius": 10, + "color": "rgba(241, 241, 241, 1)", + "fontSize": "12px", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "lineHeight": "12px", + "padding": "0 12px 0 12px" + }, + "g2-tooltip-title": { + "marginBottom": "12px", + "marginTop": "12px" + }, + "g2-tooltip-list": { + "margin": 0, + "listStyleType": "none", + "padding": 0 + }, + "g2-tooltip-list-item": { + "listStyleType": "none", + "padding": 0, + "marginBottom": "12px", + "marginTop": "12px", + "marginLeft": 0, + "marginRight": 0 + }, + "g2-tooltip-marker": { + "width": "8px", + "height": "8px", + "borderRadius": "50%", + "display": "inline-block", + "marginRight": "8px" + }, + "g2-tooltip-value": { + "display": "inline-block", + "float": "right", + "marginLeft": "30px" + } + } + }, + "annotation": { + "arc": { + "style": { + "stroke": "#262626", + "lineWidth": 1 + }, + "animate": true + }, + "line": { + "style": { + "stroke": "#404040", + "lineDash": null, + "lineWidth": 1 + }, + "text": { + "position": "start", + "autoRotate": true, + "style": { + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "textAlign": "start", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "textBaseline": "bottom" + } + }, + "animate": true + }, + "text": { + "style": { + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "textBaseline": "middle", + "textAlign": "start", + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + }, + "animate": true + }, + "region": { + "top": false, + "style": { + "lineWidth": 0, + "stroke": null, + "fill": "#FFFFFF", + "fillOpacity": 0.06 + }, + "animate": true + }, + "image": { + "top": false, + "animate": true + }, + "dataMarker": { + "top": true, + "point": { + "style": { + "r": 3, + "stroke": "#5B8FF9", + "lineWidth": 2 + } + }, + "line": { + "style": { + "stroke": "#404040", + "lineWidth": 1 + }, + "length": 16 + }, + "text": { + "style": { + "textAlign": "start", + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "direction": "upward", + "autoAdjust": true, + "animate": true + }, + "dataRegion": { + "style": { + "region": { + "fill": "#FFFFFF", + "fillOpacity": 0.06 + }, + "text": { + "textAlign": "center", + "textBaseline": "bottom", + "fill": "#A6A6A6", + "stroke": null, + "lineWidth": 0, + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"" + } + }, + "animate": true + } + }, + "slider": { + "common": { + "padding": [ + 8, + 8, + 8, + 8 + ], + "backgroundStyle": { + "fill": "#416180", + "opacity": 0.05 + }, + "foregroundStyle": { + "fill": "#5B8FF9", + "opacity": 0.1 + }, + "handlerStyle": { + "width": 10, + "height": 24, + "fill": "#F7F7F7", + "opacity": 1, + "stroke": "#BFBFBF", + "lineWidth": 1, + "radius": 2, + "highLightFill": "#FFF" + }, + "textStyle": { + "fill": "#fff", + "opacity": 0.45, + "fontSize": 12, + "lineHeight": 12, + "fontWeight": "normal", + "stroke": null, + "lineWidth": 0 + } + } + }, + "scrollbar": { + "common": { + "padding": [ + 8, + 8, + 8, + 8 + ] + }, + "default": { + "style": { + "trackColor": "rgba(25, 29, 41, 1)", + "thumbColor": "rgba(70, 71, 85, 1)" + } + }, + "hover": { + "style": { + "thumbColor": "rgba(73, 82, 99, 1)" + } + } + } + }, + "labels": { + "offset": 12, + "style": { + "fill": "#fff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": null, + "lineWidth": 0 + }, + "fillColorDark": "#ffffff", + "fillColorLight": "#ffffff", + "autoRotate": true + }, + "innerLabels": { + "style": { + "fill": "#fff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": null, + "lineWidth": 0 + }, + "autoRotate": true + }, + "overflowLabels": { + "style": { + "fill": "#ffffff", + "fontSize": 12, + "fontFamily": "\"Segoe UI\", Roboto, \"Helvetica Neue\", Arial,\n \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\",\n \"Noto Color Emoji\"", + "stroke": "#000", + "lineWidth": 1 + } + }, + "pieLabels": { + "labelHeight": 12, + "offset": 10, + "labelLine": { + "style": { + "lineWidth": 1 + } + }, + "autoRotate": true + }, + "bottom-axis-subTick-line": false, + "styleSheet": { + "brandColor": "#FF4500", + "paletteQualitative10": [ + "#FF4500", + "#1AAF8B", + "#406C85", + "#F6BD16", + "#B40F0F", + "#2FB8FC", + "#4435FF", + "#FF5CA2", + "#BBE800", + "#FE8A26" + ], + "paletteQualitative20": [ + "#FF4500", + "#1AAF8B", + "#406C85", + "#F6BD16", + "#B40F0F", + "#2FB8FC", + "#4435FF", + "#FF5CA2", + "#BBE800", + "#FE8A26", + "#946DFF", + "#6C3E00", + "#6193FF", + "#FF988E", + "#36BCCB", + "#004988", + "#FFCF9D", + "#CCDC8A", + "#8D00A1", + "#1CC25E" + ] + } } \ No newline at end of file -- Gitee From b3786a5d4927aaad65d512bfc19d0b323431f681 Mon Sep 17 00:00:00 2001 From: dengbf Date: Wed, 2 Apr 2025 17:42:58 +0800 Subject: [PATCH 3/5] =?UTF-8?q?[=E5=85=B3=E8=81=94]=20#[1375481348194304]?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=20http://192.168.0.96:8090/demo/rdm.html#/st?= =?UTF-8?q?ory-detail/939050947543040/939050947543042/1375481348194304?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../widgets/others/autoexec-widget.vue | 105 +++++++++++------- 1 file changed, 63 insertions(+), 42 deletions(-) diff --git a/src/views/pages/report/statement/widgets/others/autoexec-widget.vue b/src/views/pages/report/statement/widgets/others/autoexec-widget.vue index 798e5397..4f386600 100644 --- a/src/views/pages/report/statement/widgets/others/autoexec-widget.vue +++ b/src/views/pages/report/statement/widgets/others/autoexec-widget.vue @@ -27,20 +27,19 @@ >
-
- {{ litem.name }} +
+ {{ litem.jobPhaseName }}
-
+
结束
@@ -49,17 +48,17 @@
- + 未开始 - + 进行中 - + + + 已终止 + 失败 @@ -82,32 +81,33 @@ export default { }, data() { return { + isFirst: true, isReady: true, statusMapClass: { - // pending: 'pending border-color-info', - success: 'success border-color-success text-success', - running: 'running border-color-warning text-warning', - failed: 'failed border-color-error text-error' - // disabled: 'bg-gray' + pending: 'pending', + completed: 'completed border-color-success text-success', + running: 'running border-color-info text-info', + failed: 'failed border-color-error text-error', + aborted: 'border-color-warning text-warning' }, dataList: [], stepList: [ - {name: '步骤一', groupSort: 0, status: 'success'}, - {name: '步骤二', groupSort: 0, status: 'success'}, - {name: '步骤三', groupSort: 0, status: 'success'}, - {name: '步骤四', groupSort: 0, status: 'success'}, - {name: '步骤一', groupSort: 0, status: 'success'}, - {name: '步骤二', groupSort: 1, status: 'failed'}, - {name: '步骤三', groupSort: 1, status: 'success'}, - {name: '步骤四', groupSort: 2, status: 'success'}, - {name: '步骤一', groupSort: 2, status: 'success'}, - {name: '步骤二', groupSort: 2, status: 'success'}, - {name: '步骤三', groupSort: 3, status: 'success'}, - {name: '步骤四', groupSort: 4, status: 'success'}, - {name: '步骤一', groupSort: 4, status: 'success'}, - {name: '步骤二', groupSort: 5, status: 'success'}, - {name: '步骤三', groupSort: 6, status: 'pending'}, - {name: '步骤四', groupSort: 6, status: 'running', id: '123456'} + {jobPhaseName: '步骤一', jobGroupSort: 0, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤二', jobGroupSort: 0, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤三', jobGroupSort: 0, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤四', jobGroupSort: 0, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤一', jobGroupSort: 0, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤二', jobGroupSort: 1, jobPhaseStatus: 'failed'}, + {jobPhaseName: '步骤三', jobGroupSort: 1, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤四', jobGroupSort: 2, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤一', jobGroupSort: 2, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤二', jobGroupSort: 2, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤三', jobGroupSort: 3, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤四', jobGroupSort: 4, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤一', jobGroupSort: 4, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤二', jobGroupSort: 5, jobPhaseStatus: 'success'}, + {jobPhaseName: '步骤三', jobGroupSort: 6, jobPhaseStatus: 'pending'}, + {jobPhaseName: '步骤四', jobGroupSort: 6, jobPhaseStatus: 'running'} ], percentData: 0 }; @@ -128,7 +128,7 @@ export default { destroyed() {}, methods: { createRandomData() { - // this.isReady = false; + this.isReady = false; this.dataList = this.getStepList(this.stepList); this.getPercentData(this.stepList); this.$nextTick(() => { @@ -137,8 +137,9 @@ export default { }); }, changeData() { + this.isFirst = false; if (this.data && this.data.length > 0) { - // this.isReady = false; + this.isReady = false; this.dataList = this.getStepList(this.data); this.getPercentData(this.data); this.$nextTick(() => { @@ -150,12 +151,12 @@ export default { getStepList(stepList) { let list = []; if (stepList.length) { - let groupSortList = stepList.filter(l => !this.$utils.isEmpty(l.groupSort)); + let groupSortList = stepList.filter(l => !this.$utils.isEmpty(l.jobGroupSort)); if (groupSortList && groupSortList.length) { for (let sort = 0, index = 0; index < groupSortList.length;) { let arr = []; groupSortList.filter(l => { - if (l.groupSort == sort) { + if (l.jobGroupSort == sort) { arr.push(l); index++; return true; @@ -170,7 +171,7 @@ export default { }, stepScrollIntoView(dataList) { for (let i = 0; i < dataList.length; i++) { - if (dataList[i].status === 'running' && this.$refs['#step_' + dataList[i].id]) { + if (dataList[i].jobPhaseStatus === 'running' && this.$refs['#step_' + dataList[i].jobGroupSort + '_' + dataList[i].jobPhaseName]) { document.querySelector('#step_' + dataList[i].id).scrollIntoView({ behavior: 'smooth', // 平滑过渡 block: 'start' // start 上边框 center 中间 end 底部边框 与视窗顶部平齐 @@ -185,7 +186,7 @@ export default { if (list && list.length) { let i = 0; list.forEach(item => { - if (item.status === 'success') { + if (item.jobPhaseStatus === 'completed') { i += 1; } }); @@ -208,14 +209,34 @@ export default { }, strokeWidth() { return this.widget && this.widget.config && this.widget.config.fontsize ? this.widget.config.fontsize - 3 : 10; + }, + getStatusClassName() { + return (jobPhaseStatus) => { + let className = this.statusMapClass[jobPhaseStatus] || ''; + if (jobPhaseStatus && !className) { + if (['pausing', 'paused', 'aborting', 'waitInput'].includes(jobPhaseStatus)) { + className = this.statusMapClass['aborted']; + } else if (['checked', 'success'].includes(jobPhaseStatus)) { + className = this.statusMapClass['completed']; + } + } + return className; + }; } }, watch: { + data: { + handler() { + if (this.isFirst) { + this.changeData(); + } + }, + deep: true + } } };