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
测试案例在这:__tests__/plots/static/score-by-item-area-radar.ts
__tests__/plots/static/score-by-item-area-radar.ts
import { G2Spec } from '../../../src'; import { scoreByItem } from '../../data/score-by-item'; export function scoreByItemAreaRadar(): G2Spec { return { type: 'view', data: scoreByItem, coordinate: { type: 'polar' }, axis: { x: { grid: true }, y: { zIndex: 1, title: false, direction: 'center' }, }, scale: { x: { padding: 0.5, align: 0 }, y: { tickCount: 5 }, }, legend: { color: { layout: { justifyContent: 'flex-start' } } }, children: [ { type: 'area', encode: { x: 'item', y: 'score', color: 'type' }, style: { fillOpacity: 0.5 }, }, { type: 'line', encode: { x: 'item', y: 'score', color: 'type' }, style: { lineWidth: 2 }, }, ], }; }
The text was updated successfully, but these errors were encountered:
4.0 中 area 的 default maker 是 square:https://g2-v4.antv.vision/zh/examples/area/stacked#stacked
Sorry, something went wrong.
这个问题已经修复了,但是 tooltip 中有类似的问题。
这个也许得调整 shape 接口:可以绑定 marker, 并且用 SVG path string 描述,这样 html 和 canvas 都可以使用。
至少得内置几种 marker,自定义都是很复杂的,无论是用 svg path string 还是 dom。
related:#4996 ,当前这个关闭了。
Aarebecca
No branches or pull requests
测试案例在这:
__tests__/plots/static/score-by-item-area-radar.ts
The text was updated successfully, but these errors were encountered: