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

antv V5.2.2 面积图area内置 shape 图形设置无效 #6581

Open
Eomnational opened this issue Jan 8, 2025 · 0 comments
Open

antv V5.2.2 面积图area内置 shape 图形设置无效 #6581

Eomnational opened this issue Jan 8, 2025 · 0 comments

Comments

@Eomnational
Copy link

问题描述

antv V5.2.2 面积图area内置 shape 图形设置除了area之外的选项设置无效
/**

const chart = new Chart({
container: 'container',
autoFit: true,
});

chart.data({
type: 'fetch',
value: 'https://assets.antv.antgroup.com/g2/stocks.json',
transform: [
{
type: 'filter',
callback: (d) => d.symbol === 'GOOG',
},
],
});

chart
.smooth()
.encode('x', (d) => new Date(d.date))
.encode('y', 'price')
.style('fill', 'linear-gradient(-90deg, rgba(24,144,255,.1) 0%, rgba(24,144,255,.25) 100%)');

chart
.line()
.encode('x', (d) => new Date(d.date))
.encode('y', 'price')
.style('stroke', 'rgba(24,144,255,.90)')
.style('lineWidth', 2);

chart.render();
企业微信截图_17363011989759
企业微信截图_17363012181724

重现链接

No response

重现步骤

No response

预期行为

可以绘制平滑曲线的面积图

平台

No response

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant