-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed as not planned
Closed as not planned
Copy link
Labels
enThis issue is in EnglishThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Description
What problem does this feature solve?
You can add an image to the label using the axisLabel > rich property, but it would provide a better development experience if you could apply a CSS class.
In most projects, images are often managed with CSS classes, so it would be nice to be able to apply CSS classes or Icon-fonts.
What does the proposed API look like?
axisLabel: {
rich: {
backgroundColor: {
image: {
class: ‘icon-class-name’,
}
}
},
formatter (value) {
return `{icon| ${value}}`
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enThis issue is in EnglishThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.