fix: echarts 图表配置 className 调整鼠标移入弹框主题样式

This commit is contained in:
@changcode
2021-12-27 14:36:47 +08:00
parent ca6a95d51b
commit d3183fc32e
6 changed files with 14 additions and 4 deletions

View File

@@ -363,3 +363,8 @@ td .nz-icon-gear:before{
}
}
}
.chart-bar,.chart-gauge,.chart-time-series,.chart-treemap,.chart-pie {
background-color: $--chart-background-color !important;
border-color: $--chart-border-color !important;
color: $--color-text-regular !important;
}

View File

@@ -6,7 +6,8 @@ const chartBarOption = {
extraCssText: 'z-index:1000;',
z: 9,
animation: false,
appendToBody: true
appendToBody: true,
className: 'chart-bar'
},
legend: {
show: false

View File

@@ -6,7 +6,8 @@ const chartGaugeOption = {
extraCssText: 'z-index:1000;',
z: 9,
animation: false,
appendToBody: true
appendToBody: true,
className: 'chart-gauge'
},
series: [
{

View File

@@ -6,7 +6,8 @@ const chartPieOption = {
extraCssText: 'z-index:1000;',
z: 9,
animation: false,
appendToBody: true
appendToBody: true,
className: 'chart-pie'
},
legend: {
show: false

View File

@@ -37,7 +37,8 @@ export const chartTimeSeriesLineOption = {
extraCssText: 'z-index:99999999;',
z: 9,
animation: false,
appendToBody: true
appendToBody: true,
className: 'chart-time-series'
// formatter: 动态生成
},
color: initColor(),

View File

@@ -8,6 +8,7 @@ const chartTreemapOption = {
z: 9,
animation: false,
appendToBody: true,
className: 'chart-treemap',
formatter: function (info) {
const value = info.value
const treePathInfo = info.treePathInfo