blob: 47c3c3ba4058f7b9f30b9048341b8ebc5c4e6924 [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/component/polar',
// 'zrender/vml/vml'
], function (echarts) {
var chart = echarts.init(document.getElementById('main'));
chart.setOption({
angleAxis: {
},
radiusAxis: {
type: 'category',
data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
z: 10
},
polar: {
},
tooltip: {},
series: [{
type: 'bar',
data: [1, 2, 4, 3, 6, 5, 7],
coordinateSystem: 'polar',
itemStyle: {
normal: {
color: '#00f'
}
},
barWidth: '50%'
}]
});
chart.on('click', function (params) {
console.log(params);
});
window.onresize = chart.resize;
});
</script>
</body>
</html>