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.

echart yAxis and xAxis label cutout

See original GitHub issue

hi, so i am using echart in my bootstrap project and i use this styling to control the size of the chart

<style scoped>
	.echarts{
		width: 100vw;
		min-width: 50vw;
		height: 50vh;
	}
</style>

and i find there is some anoying problem that happen if only i have long yAxis or xAxis label like this screen shot 2018-03-25 at 22 54 47

so how to fixed it? to make sure there is no cutout in yAxis and xAxis label?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
k1ngbananacommented, Jun 6, 2020

Am alternate option is to adjust with grid margins and set a fixed width for labels while they can be represented with ellipsis for longer ones.

stackoverflow link

i have try this links method, and it helps me. the solution in the link is set property below

grid: { containLabel: true }

hopes this also helps u

1reaction
laks90Jscommented, May 12, 2020

Am alternate option is to adjust with grid margins and set a fixed width for labels while they can be represented with ellipsis for longer ones.

Read more comments on GitHub >

github_iconTop Results From Across the Web

echart yAxis and xAxis label cutout · Issue #8018 - GitHub
hi, so i am using echart in my bootstrap project and i use this styling to control the size of the chart and...
Read more >
Axis - Concepts - Handbook - Apache ECharts
Both x-axis and y-axis included axis line, tick, label and title. Some chart will use the grid to assist the data viewing and...
Read more >
echarts - group axis labels with the same value - Stack Overflow
I'm trying to build a bar graph with echarts, where each bar has an hour and date associated with it. How can I...
Read more >
Wrapping, truncating, and auto-rotating axis labels - amCharts
The first solution that comes into mind is: "let's make labels wrap so they are not overlapping". To make that happen, we will...
Read more >
xAxis.labels - API Reference - Kendo UI Chart - Documentation
Accepts a valid CSS color string, including hex and rgb. Example - set the scatter chart x axis label background as a hex...
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