blob: cecb2f694b6016a0f99ac5b60a99d459acaf65d0 [file] [log] [blame]
<html>
<head>
<meta charset="utf-8">
<script src="lib/esl.js"></script>
<script src="lib/config.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<style>
html, body, #main {
width: 100%;
height: 100%;
margin: 0;
}
#main {
background: #fff;
}
</style>
<div id="main"></div>
<script>
require([
'echarts'
// 'echarts/chart/bar',
// 'echarts/chart/line',
// 'echarts/component/polar',
// 'zrender/vml/vml'
], function (echarts) {
var chart = echarts.init(document.getElementById('main'));
chart.setOption({
angleAxis: {
},
radiusAxis: {
type: 'category',
data: ['周一', '周二', '周三', '周四'],
z: 10
},
polar: {
},
series: [{
type: 'bar',
data: [1, '-', 3, '-'],
coordinateSystem: 'polar'
}, {
type: 'bar',
data: ['-', 4, '-', '-'],
coordinateSystem: 'polar'
}, {
type: 'bar',
data: ['-', '-', 3, 4],
coordinateSystem: 'polar'
}]
});
chart.on('click', function (params) {
console.log(params);
});
window.onresize = chart.resize;
});
</script>
</body>
</html>