Echarts 修改字體樣色 X、Y軸


1、雷達圖修改字體顏色

    polar: [
                       {
                         name:{ show: true,
                               formatter: null,
                               textStyle: {
                                   //設置顏色
                                   color: '#109cad' } },
                           indicator: [
                               { text: '養老保險', max: 6000},
                               { text: '失業保險', max: 16000 },
                               { text: '醫療保險', max: 30000 },
                               { text: '工傷保險', max: 38000 },
                               { text: '生育保險', max: 52000 }

                           ]
                       }
                    ],

2、柱狀圖修改字體顏色

  xAxis: [
                        {
                           
                            type: 'category',
                            boundaryGap: true,
                            splitLine: { show: false },//去除網格線
                            axisLine: { lineStyle: { color: '#0087ED' } },
                           axisLabel: { show: true,
                                textStyle: {
                                    color: "#109cad"
                                }
                            },

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM