option = { title: { text: 'Awesome Chart' }, xAxis: { data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], axisPointer:{ show:true, snap:true, lineStyle:{ type:'dashed' } } }, yAxis: { axisPointer:{ show:true, snap:true, lineStyle:{ type:'dashed' } } }, series: [{ type: 'line', data:[220, 182, 191, 234, 290, 330, 310] }], tooltip:{ trigger:"axis" } };