Skip to content
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

[Bug] 柱状图无法正确渲染 #18392

Open
luomu172 opened this issue Mar 16, 2023 · 4 comments
Open

[Bug] 柱状图无法正确渲染 #18392

luomu172 opened this issue Mar 16, 2023 · 4 comments
Labels
bug pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days. topic: bar waiting-for: author

Comments

@luomu172
Copy link

Version

5.4.1

Link to Minimal Reproduction

No response

Steps to Reproduce

复制下面这份配置就可以重现了
option = { tooltip: { trigger: 'axis', axisPointer: { // Use axis to trigger tooltip type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow' } }, legend: {}, grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true }, xAxis: { type: 'log' }, yAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] }, series: [ { name: 'Direct', type: 'bar', stack: 'total', label: { show: true }, emphasis: { focus: 'series' }, data: [320, 0, 301, 334, 390, 330, 320] }, { name: 'Mail Ad', type: 'bar', stack: 'total', label: { show: true }, emphasis: { focus: 'series' }, data: [120, 132, 101, 134, 90, 230, 210] }, { name: 'Affiliate Ad', type: 'bar', stack: 'total', label: { show: true }, emphasis: { focus: 'series' }, data: [220, 182, 191, 234, 290, 330, 310] }, { name: 'Video Ad', type: 'bar', stack: 'total', label: { show: true }, emphasis: { focus: 'series' }, data: [150, 212, 201, 154, 190, 330, 410] }, { name: 'Search Engine', type: 'bar', stack: 'total', label: { show: true }, emphasis: { focus: 'series' }, data: [820, 832, 901, 934, 1290, 1330, 1320] } ] };

Current Behavior

柱状图无法正确显示

Expected Behavior

能正确显示

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@luomu172 luomu172 added the bug label Mar 16, 2023
@kai890707
Copy link

Is there a more specific misrepresentation?
The chart is still available after my review.

@helgasoft
Copy link

replace xAxis: {type: 'log'} with xAxis: {}

@plainheart plainheart added pending We are not sure about whether this is a bug/new feature. waiting-for: author topic: bar labels Mar 16, 2023
@helgasoft
Copy link

yes, there is a bug - any zero value in the first series data will trigger it. In this case - [320, 0, 301, 334, 390, 330, 320].
But a stacked barchart with a log axis does not make sense, see #18330

disclaimer opinions expressed in this post are strictly personal, as ECharts user, not a developer

Copy link
Contributor

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.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days. topic: bar waiting-for: author
Projects
None yet
Development

No branches or pull requests

4 participants