VisActor / VisActor/VChart

[Bug] 面积图绘制会存在留白

Open
#2,957 4 comments 0 reactions 1 assignee View on GitHub

@xile611 is already working on this.

Since Jul 18, 2024.

bug
Dominant language
TypeScript
Stars
1.8k
Forks
221
Avg merge
1d 6h
Merged PRs (30d)
26

Description

Version

1.11.8

Link to Minimal Reproduction

https://www.visactor.io/vchart/demo/area-chart/smoothed-area

Steps to Reproduce

const spec = {
type: 'area',
padding: 0,
axes: [{ orient: 'left', visible: false }, { orient: 'bottom', visible: true, trimPadding: true }],
data: {
values: [
{
time: '2:00',
value: 38
},
{
time: '4:00',
value: 56
},
{
time: '6:00',
value: 10
},
{
time: '8:00',
value: 70
},
{
time: '10:00',
value: 36
},
{
time: '12:00',
value: 94
},
{
time: '14:00',
value: 24
},
{
time: '16:00',
value: 44
},
{
time: '18:00',
value: 36
},
{
time: '20:00',
value: 68
},
{
time: '22:00',
value: 22
}
]
},
xField: 'time',
yField: 'value',
line: {
style: {
curveType: 'monotone'
}
}
};

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

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;

Current Behavior

image

Expected Behavior

正常渲染,无颜色缺失

Environment
- OS: macOS Ventura 13.5.2
- Browser: Chrome 126.0.6478.127(正式版本) (arm64)
- Framework:
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.