import { Chart } from '@antv/g2';
const data = [
{ type: '1岁', value: 8400 },
{ type: '2岁', value: 5300 },
{ type: '3岁', value: 6200 },
{ type: '4岁', value: 4200 },
{ type: '5岁', value: 11200 },
];
const chart = new Chart({
container: 'container',
autoFit: true,
});
chart.data(data);
chart.line().position('type*value')
chart.render();
AntV G2 折线图
猜你喜欢
转载自blog.csdn.net/qq_36658051/article/details/112246589
今日推荐
周排行