← Highcharts
AntV 是蚂蚁金服全新一代数据可视化解决方案,致力于提供一套简单方便、专业可靠、无限可能的数据可视化最佳实践。
AntV 包括以下解决方案:
G2:可视化引擎
G2Plot:图表库
G6:图可视化引擎
Graphin:基于 G6 的图分析组件
F2:移动可视化方案
ChartCube:AntV 图表在线制作
L7:地理空间数据可视化
G2 案例:折线图
const data = [
{ year: '1991', value: 3 },
{ year: '1992', value: 4 },
{ year: '1993', value: 3.5 },
{ year: '1994', value: 5 },
{ year: '1995', value: 4.9 },
{ year: '1996', value: 6 },
{ year: '1997', value: 7 },
{ year: '1998', value: 9 },
{ year: '1999', value: 13 },
];
const chartDom = document.getElementById('g2-chart');
const plot = new G2Plot.Line(chartDom, {
title: {
visible: true,
text: 'g2折线图示例',
},
data,
xField: 'year',
yField: 'value',
description: {
visible: true,
text: '折线图用于表示连续时间跨度内的数据,它通常用于显示某变量随时间的变化模式。',
},
point: {
visible: true
},
label: {