Browse Source

[Fix-14531][UI] Tooltip of Chart not show text in light theme mode (#14532)

Co-authored-by: xiangzihao <460888207@qq.com>
Co-authored-by: Rick Cheng <rickchengx@gmail.com>
Co-authored-by: Eric Gao <ericgao.apache@gmail.com>
3.2.1-prepare
arlendp 1 year ago committed by GitHub
parent
commit
c0d776381c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dolphinscheduler-ui/src/components/chart/modules/Bar.tsx
  2. 3
      dolphinscheduler-ui/src/components/chart/modules/Pie.tsx
  3. 1
      dolphinscheduler-ui/src/views/projects/workflow/relation/components/Graph.tsx

1
dolphinscheduler-ui/src/components/chart/modules/Bar.tsx

@ -50,7 +50,6 @@ const BarChart = defineComponent({
axisPointer: { axisPointer: {
type: 'shadow' type: 'shadow'
}, },
backgroundColor: '#fff'
}, },
grid: { grid: {
left: '3%', left: '3%',

3
dolphinscheduler-ui/src/components/chart/modules/Pie.tsx

@ -41,8 +41,7 @@ const PieChart = defineComponent({
const option = { const option = {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item'
backgroundColor: '#fff'
}, },
legend: { legend: {
bottom: '0%', bottom: '0%',

1
dolphinscheduler-ui/src/views/projects/workflow/relation/components/Graph.tsx

@ -70,7 +70,6 @@ const GraphChart = defineComponent({
const option: any = { const option: any = {
tooltip: { tooltip: {
confine: true, confine: true,
backgroundColor: '#fff',
formatter: (params: any) => { formatter: (params: any) => {
if (!params.data.name) { if (!params.data.name) {
return false return false

Loading…
Cancel
Save