blob: 0ffcb9e2771968c4485e30f4962057a81c90cfd7 [file] [log] [blame]
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Airline - ECHARTS-GL</title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes"> <!-- Fullscreen Landscape on iOS -->
<link rel="stylesheet" href="../common/reset.css">
</head>
<body>
<div id="main"></div>
<script src="../common/echarts.min.js"></script>
<script>
var chart = echarts.init(document.getElementById('main'));
var data = [];
for (var i = 0; i <= 360; i++) {
var t = i / 180 * Math.PI;
var r = Math.sin(2 * t) * Math.cos(2 * t);
data.push([r, i]);
}
var option = {
polar: {
center: ['50%', '54%']
},
angleAxis: {
type: 'value',
startAngle: 0,
axisLine: {
lineStyle: {
color: '#fff'
}
}
},
radiusAxis: {
min: 0,
axisLine: {
lineStyle: {
color: '#fff'
}
}
},
series: [{
coordinateSystem: 'polar',
name: 'line',
type: 'line',
showSymbol: false,
data: data,
lineStyle: {
normal: {
color: '#15f0ff',
shadowBlur: 12,
shadowColor: '#15f0ff'
}
}
}],
animationDuration: 2000
};
chart.setOption(option);
window.onresize = chart.resize;
</script>
</body>
</html>