Browse Source

fix: 大屏图表字体大小调整

周玉环 1 day ago
parent
commit
182e630724

+ 3 - 3
xinkeaboard-admin/src/pages/statistics/bigscreen/components/BarChart.js

@@ -40,7 +40,7 @@ class BarChart extends React.Component {
       tooltip: {
         trigger: "item", // 鼠标悬浮触发方式:'item' 或 'axis'
         textStyle: {
-          fontSize: 28, // 设置字体大小
+          fontSize: 25, // 设置字体大小
           fontWeight: "bold", // 可选:加粗
           // color: "#fff", // 可选:字体颜色
         },
@@ -51,7 +51,7 @@ class BarChart extends React.Component {
         axisLabel: {
           show: true,
           fontWeight: 'bold',
-          fontSize: 20,
+          fontSize: 12,
           color: "#FFFFFF",
         },
       },
@@ -60,7 +60,7 @@ class BarChart extends React.Component {
         axisLabel: {
           show: true,
           fontWeight: 'bold',
-          fontSize: 20,
+          fontSize: 12,
           color: "#FFFFFF",
         },
         splitLine: {