Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

label 使用formatter rich 改变了颜色,insideColor 不生效 #168

Open
kkkisme opened this issue Jul 12, 2023 · 0 comments
Open

label 使用formatter rich 改变了颜色,insideColor 不生效 #168

kkkisme opened this issue Jul 12, 2023 · 0 comments

Comments

@kkkisme
Copy link

kkkisme commented Jul 12, 2023

var option = {
    series: [{
        type: 'liquidFill',
        label: {
        show: true,
        color: '#0088FF',
        insideColor: '#fff',
        formatter: (params) => {
          const v = (params.value * 100).toFixed(2)
          return [`{a|${v}}{b|%}`, `{c|指标名称}`].join('\n')
        },
        rich: {
        c: {
            fontSize: 10,
            lineHeight: 20,
            color: '#999'  // 此处修改了指标名称颜色,但只希望作用于outside 
           } 
         }
        }
        data: [0.6]
    }]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant