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