-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The chart columns overflow the grid area for a stacked bar chart with logarithmic Y axis #10374
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 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. Have a nice day! 🍵 |
If i found out correctly, the chart does not calculate the maximum value of all stacked bars. With the latter, my stacked bar looks correct like it should. My temporaray solution: calculate the sum of all values in a variable and add that variable like this: |
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue. |
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks! |
Version
4.2.1
Steps to reproduce
option = {
title: {
text: '对数轴示例',
left: 'center'
},
tooltip: {
trigger: 'item',
formatter: '{a}
{b} : {c}'
},
legend: {
left: 'left',
data: ['2的指数', '3的指数']
},
xAxis: {
type: 'category',
name: 'x',
splitLine: {show: false},
data: ['一', '二', '三', '四', '五', '六', '七', '八', '九']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
yAxis: {
type: 'log',
name: 'y'
},
series: [
{
name: '3的指数',
type: 'bar',
stack: 'one',
data: [1, 3, 9, 27, 81, 247, 741, 2223, 6669],
label: {
normal: {
show: true,
position: 'insideTop'
}
}
},
{
name: '2的指数',
type: 'bar',
stack: 'one',
data: [1, 2, 4, 8, 16, 32, 64, 128, 256],
label: {
normal: {
show: true,
position: 'insideTop'
}
}
},
{
name: '1/2的指数',
type: 'bar',
stack: 'one',
data: [1/2, 1/4, 1/8, 1/16, 1/32, 1/64, 1/128, 1/256, 1/512],
label: {
normal: {
show: true,
position: 'insideTop'
}
}
}
]
}
What is expected?
Columns do not overflow
What is actually happening?
Columns overflow
The text was updated successfully, but these errors were encountered: