Skip to content

axisLabel.renderMode: 'html' #10564

@ggregoire

Description

@ggregoire

What problem does this feature solve?

Right now it's impossible to format the axisLabel in html.

Example:

axisLabel: {
  formatter: value => {
    return `<div class="wrapper">
      <div class="logo">
        <img src="...">
      </div>
      <span>${value}</span>
    </div>`
  }
}

This doesn't work currently.

What does the proposed API look like?

Like for tooltip:

axisLabel: {
  renderMode: 'html',
  formatter: value => {
    return `<div class="wrapper">
      <div class="logo">
        <img src="...">
      </div>
      <span>${value}</span>
    </div>`
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishsupport

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions