vue echarts 自定义title

2022-02-13  本文已影响0人  安徒生1997

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,

              },

            }

          }

        },

上一篇 下一篇

猜你喜欢

热点阅读