question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

axisLabel.renderMode: 'html'

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zhoufanglucommented, Apr 23, 2021

formatter的问题解决了

//变量
let companyScore = 40
let companyLevel = '优'
//富文本rich使用
formatter: [
  `{a|`+companyScore+`}`,
  `{b|`+companyLevel+`}`,
].join('\n'),
rich: {
  a: {
    color: 'red',
    lineHeight: 10
  },
  b: {
    color: 'green',
    fontSize: 32
  },
},

0reactions
Oviliacommented, May 30, 2019

axisLabel does not support HTML rendering. Using rich is correct.

Read more comments on GitHub >

github_iconTop Results From Across the Web

axisLabel.renderMode: 'html' #10564 - apache/echarts - GitHub
What problem does this feature solve? Right now it's impossible to format the axisLabel in html. Example: axisLabel: { formatter: value ...
Read more >
Changelog - Apache ECharts
[Feature] Provide more smarter time axis label and tick arrangement: ... Fix newline in tooltip of radar and map series when using ricText...
Read more >
rrdgraph - RRDtool
The x-axis label is quite complex to configure. If you don't have very special needs it ... This allows one to embed some...
Read more >
Class CircularGaugeAxisLabelStyle - Syncfusion
Gets or sets the style of the axis label in circular gauge component. Inheritance. System.Object. CircularGaugeAxisLabelStyle. Namespace: Syncfusion.Blazor ...
Read more >
rrdgraph(1) — Arch manual pages
The x-axis label is quite complex to configure. If you don't have very special needs it ... This allows one to embed some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found