Explorar o código

style: 图表颜色调整

outaozhen %!s(int64=4) %!d(string=hai) anos
pai
achega
cf5000973f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/pages/Statistic/Software/Usage/index.jsx

+ 2 - 0
src/pages/Statistic/Software/Usage/index.jsx

@@ -150,6 +150,7 @@ const Usage = () => {
     angleField: 'value',
     colorField: 'label',
     radius: 0.9,
+    color: ['#40B7E6', '#35E667', '#E6E035', '#E63065'],
     interactions: [{ type: 'element-active' }]
   }
   const rightConfig = {
@@ -158,6 +159,7 @@ const Usage = () => {
     angleField: 'value',
     colorField: 'label',
     radius: 0.9,
+    color: ['#40B7E6', '#35E667', '#E6E035', '#E63065'],
     interactions: [{ type: 'element-active' }]
   }