Version
4.5.0
Steps to reproduce
var dd = new Date();
var oneDay = 3600 * 24 * 1000 * 1000;
var data = [];
for (var i = 0; i < 20; i ) {
data.push([
dd, i % 3 ? 10 : 20
]);
dd = oneDay;
}
var option = {
backgroundColor: '#fff',
toolbox: {
feature: {
brush: {}
}
},
grid: {
containLabel: true,
right: 5
},
xAxis: {
type: 'time',
axisLabel: {
formatter: function (value) {
return echarts.format.formatTime('yyyy-MM-dd', value);
}
}
},
yAxis: {},
series: {
type: 'line',
data: data
}
};
What is expected?
Do not cut the right label.
What is actually happening?
The right most label is cut.
4条答案
按热度按时间ni65a41a1#
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical questions.
If you are interested in the project, you may also subscribe our mail list .
Have a nice day! 🍵
oalqel3c2#
any progress?
sxissh063#
still actual. My main version is 4.9, but also checked in examples sandbox of v5x - same.
It seems like for X axis it calculates bottom space, and for Y left one. So when X labels go out of X axis dimension - not included in calculation.
This is my adhoc solution.
hkmswyz64#
Any progress?