We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
中级任务
保证折线图和面积图颜色渐变在 transpose 的情况下正常。下图中颜色从上到下渐变,期望效果是从左到右渐变。
/** * A recreation of this demo: https://observablehq.com/@d3/gradient-encoding */ import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', theme: 'classic', padding: 'auto', height: 640, width: 480, }); chart .line() .coordinate({transform:[{type:'transpose'}]}) .data({ type: 'fetch', value: 'https://assets.antv.antgroup.com/g2/temperatures2.json', }) .scale('x', { utc: true }) .scale('y', { nice: true }) .scale('color', { palette: 'turbo' }) .encode('x', (d) => new Date(d.date)) .encode('y', 'value') .encode('shape', 'hvh') .encode('color', 'value') .encode('series', () => undefined) .style('gradient', 'y') .style('lineWidth', 2) .style('lineJoin', 'round') .axis('x', { title: 'date' }); chart.render();
The text was updated successfully, but these errors were encountered:
【Runtus】认领
Sorry, something went wrong.
Runtus
Successfully merging a pull request may close this issue.
AntV Open Source Contribution Plan(可选)
Issue 类型
中级任务
任务介绍
保证折线图和面积图颜色渐变在 transpose 的情况下正常。下图中颜色从上到下渐变,期望效果是从左到右渐变。
参考说明
The text was updated successfully, but these errors were encountered: