vue Echarts 样式设置【持续】

参考地址

图形的标题富文本样式设置,需要在options中添加属性title。示例如下:

title:
{
    show: true,
    text: "{desc|已入园人数} {num|74}     {desc|当前容量} {num|1723}", // 竖线|前面的表示样式名称,后面的是需要修饰的内容。
    x: 'center',
    textStyle:
    {
        rich:
        {
            desc:
            {
                color:"#E9E9E9"
            },
            num:
            {
                color:"#F9CE37",
                fontSize: 16
            }
        }
    }
}

修改折线图的网格边距:

grid: // 设置网格样式
{
    left: '15%',
    top: '15%',
    right: '10%',
    bottom: '20%'
}

猜你喜欢

转载自www.cnblogs.com/JoanLin-workNotes/p/12522225.html