美文网首页
vue echarts 自定义title

vue echarts 自定义title

作者: 安徒生1997 | 来源:发表于2022-02-13 09:58 被阅读0次

title: {

          left: 'left',

          text: [

            '{c|}{a|按销售数量统计}',

            '{b|总销售数量}',

            '{d|数量}{e|总计1200}',

          ].join('\n'),

          textStyle: {

            rich: {

              a: {

                color: '#000000',

                fontSize: 18,

                fontWeight: 600,

                padding: [0, 0, 0, 10],

              },

              b: {

                lineHeight: 36,

                fontSize: 14,

                padding: [0, 0, 0, 15],

              },

              c: {

                lineHeight: 1,

                width: 3,

                height: 18,

                backgroundColor: '#cccccc',

              },

              d: {

                color: '#cccccc',

                fontSize: 12,

                padding: [0, 0, 0, 25],

              },

              e: {

                color: '#000000',

                padding: [0, 0, 0, 10],

                fontSize: 12,

              },

            }

          }

        },

相关文章

网友评论

      本文标题:vue echarts 自定义title

      本文链接:https://www.haomeiwen.com/subject/zsdflrtx.html