Skip to content

[Feature] Request improvement to apply CSS class to AxisLabel > rich > image. #18584

@kim1124

Description

@kim1124

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}}`
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions