option = {
xAxis: {
type: 'category',
data: [
'2000', '2001', '2002', '2003', '2004', '2005', '2006',
'2007', '2008', '2009', '2010', '2011', '2012', '2013',
'2014', '2015', '2016', '2017', '2018', '2019', '2020',
'2021'
]
},
yAxis: {
type: 'value'
},
grid: {
containLabel: true,
left: '0%',
right: '0%',
},
color:['#5a72e0'],
series: [
{
data: [820, 932, 901, 934, 1290, 1330, 1020, 932, 901, 934, 1290, 2330, 1320, 1932, 2801, 1834, 1890, 1810, 1820],
type: 'line',
smooth: true
}
]
};