fix(echart): 修复图表的warn问题 (#218)

* fix(echart): 修复图表的warn问题

* fix(echart): 修复遗漏的图表warn问题
This commit is contained in:
悠静萝莉 2022-07-10 14:59:17 +08:00 committed by GitHub
parent 88feed0e8c
commit 3afb38d1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 53 deletions

View File

@ -41,12 +41,8 @@ export function constructInitDashboardDataset(type: string) {
{ type: 'min', name: '最小值' },
],
},
itemStyle: {
normal: {
lineStyle: {
width: 2,
},
},
lineStyle: {
width: 2,
},
},
],
@ -278,15 +274,11 @@ export function getLineChartDataSet({
symbol: 'circle',
symbolSize: 8,
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
areaStyle: {
normal: {
opacity: 0.1,
},
opacity: 0.1,
},
},
{
@ -298,10 +290,8 @@ export function getLineChartDataSet({
symbol: 'circle',
symbolSize: 8,
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
],
@ -352,7 +342,6 @@ export function getPieChartDataSet({
radius: ['48%', '60%'],
avoidLabelOverlap: true,
selectedMode: true,
hoverAnimation: true,
silent: true,
itemStyle: {
borderColor: containerColor,
@ -377,6 +366,7 @@ export function getPieChartDataSet({
},
},
emphasis: {
scale: true,
label: {
show: true,
formatter: ['{value|{d}%}', '{name|{b}渠道占比}'].join('\n'),

View File

@ -188,10 +188,8 @@ export function getFolderLineDataSet({
],
type: 'line',
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
{
@ -211,10 +209,8 @@ export function getFolderLineDataSet({
],
type: 'line',
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
{
@ -234,10 +230,8 @@ export function getFolderLineDataSet({
],
type: 'line',
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
{
@ -257,10 +251,8 @@ export function getFolderLineDataSet({
],
type: 'line',
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
],

View File

@ -82,9 +82,7 @@ export function getSmoothLineDataSet({
symbol: 'circle',
symbolSize: 8,
areaStyle: {
normal: {
opacity: 0.1,
},
opacity: 0.1,
},
},
{

View File

@ -77,10 +77,8 @@ export function getFolderLineDataSet({
],
type: 'line',
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
{
@ -100,10 +98,8 @@ export function getFolderLineDataSet({
],
type: 'line',
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
{
@ -123,10 +119,8 @@ export function getFolderLineDataSet({
],
type: 'line',
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
{
@ -146,10 +140,8 @@ export function getFolderLineDataSet({
],
type: 'line',
itemStyle: {
normal: {
borderColor,
borderWidth: 1,
},
borderColor,
borderWidth: 1,
},
},
],