Style MarkLine label background
See original GitHub issueWhat problem does this feature solve?
Better MarkLine label presentation.
What I want to achieve | Best I can achieve with eCharts currently |
---|---|
What does the proposed API look like?
markLine: {
labelStyle: {
color: '#f00',
background: '#0f0',
borderRadius: 2,
padding: 4,
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Style MarkLine label background #13269 - apache/echarts
Better MarkLine label presentation. What I want to achieve Best I can achieve with eCharts currently What does the proposed API look like?...
Read more >Format or styling label in apache echarts markLine
This labels has limit to improve deep custom design. ... design and other people will frustrate due incorrect style, color, position.
Read more >Documentation - Apache ECharts
Background color of title, which is transparent by default. Color can be represented in RGB, for example 'rgb(128, 128, 128)' .
Read more >echarts-markline - JSFiddle - Code Playground
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Read more >Styling - Chart.js
There are a number of options to allow styling an axis. ... backdropPadding, Padding, 2, Padding of label backdrop.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @narayn92, I was able to get results quite close to the reference image with the properties you provided.
But why aren’t they documented? Probably we should keep this issue open until they are documented so other people can find them.
@Bilge The above problem can be solved using the existing label properties which are not listed in the official documentation. You can see these properties in the source code. Attached screenshot for your reference.
Sample chart option: