8000 [Bug] 堆叠瀑布图在同一堆中同时有正直与负值时,没有分开堆叠正负值 · Issue #2212 · VisActor/VChart · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug] 堆叠瀑布图在同一堆中同时有正直与负值时,没有分开堆叠正负值 #2212
Closed
@xuefei1313

Description

@xuefei1313

Version

1.9.1

Link to Minimal Reproduction

null

Steps to Reproduce

const spec = {
type: 'waterfall',
data: {
id: 'id0',
values: [
{ x: 'First Quarter', y: 10954, type: 'Primary Industry' },
{ x: 'First Quarter', y: 106187, type: 'Secondary Industry' },
{ x: 'First Quarter', y: 153037, type: 'Tertiary Industry' },
{ x: 'Second Quarter', y: -308183, type: 'Primary Industry' },
{ x: 'Second Quarter', y: 122450, type: 'Secondary Industry' },
{ x: 'Second Quarter', y: 151831, type: 'Tertiary Industry' },
{ x: 'Third Quarter', y: 25642, type: 'Primary Industry' },
{ x: 'Third Quarter', y: 121553, type: 'Secondary Industry' },
{ x: 'Third Quarter', y: 160432, type: 'Tertiary Industry' },
{ x: 'Fourth Quarter', y: 33497, type: 'Primary Industry' },
{ x: 'Fourth Quarter', y: 132601, type: 'Secondary Industry' },
{ x: 'Fourth Quarter', y: 169411, type: 'Tertiary Industry' },
{ x: 'Full year', total: true }
]
},
legends: { visible: true, orient: 'bottom' },
xField: 'x',
yField: 'y',
seriesField: 'type',
total: {
type: 'field',
tagField: 'total'
},
stackLabel: {
valueType: 'change'
},
title: {
visible: true,
text: 'Chinese quarterly GDP in 2022'
},
axes: [
{
orient: 'left',
title: { visible: true, text: 'Unit: 100 million yuan' }
},
{
orient: 'bottom',
label: { visible: true },
type: 'band',
paddingInner: 0.4,
title: { visible: false }
}
]
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// 只为了方便控制台调试用,不要拷贝
window['vchart'] = vchart;

Current Behavior

image

Expected Behavior

image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0