径向扰动散点图
/**
* A recreation of this demo:
*/
import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
autoFit: true,
});
chart.options({
type: 'point',
coordinate: { type: 'polar' },
data: {
type: 'fetch',
value: 'https://gw.alipayobjects.com/os/antvdemo/assets/data/diamond.json',
},
transform: [{ type: 'jitter' }],
encode: { x: 'clarity', color: 'clarity' },
legend: false,
});
chart.render();