113 lines
3.3 KiB
HTML
113 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>周杰伦的歌词情感分析</title>
|
|
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
|
|
<script type="text/javascript" src="https://assets.pyecharts.org/assets/themes/westeros.js"></script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="4ba593a441c441c4a398eae018a3d534" class="chart-container" style="width:900px; height:500px;"></div>
|
|
<script>
|
|
var chart_4ba593a441c441c4a398eae018a3d534 = echarts.init(
|
|
document.getElementById('4ba593a441c441c4a398eae018a3d534'), 'westeros', {renderer: 'canvas'});
|
|
var option_4ba593a441c441c4a398eae018a3d534 = {
|
|
"animation": true,
|
|
"animationThreshold": 2000,
|
|
"animationDuration": 1000,
|
|
"animationEasing": "cubicOut",
|
|
"animationDelay": 0,
|
|
"animationDurationUpdate": 300,
|
|
"animationEasingUpdate": "cubicOut",
|
|
"animationDelayUpdate": 0,
|
|
"series": [
|
|
{
|
|
"type": "pie",
|
|
"name": "\u5468\u6770\u4f26\u7684\u6b4c\u8bcd\u60c5\u611f\u5206\u6790",
|
|
"clockwise": true,
|
|
"data": [
|
|
{
|
|
"name": "\u5185\u5bb9\u6781\u5ea6\u8d1f\u9762",
|
|
"value": 1232
|
|
},
|
|
{
|
|
"name": "\u5185\u5bb9\u8f83\u4e3a\u8d1f\u9762",
|
|
"value": 2028
|
|
},
|
|
{
|
|
"name": "\u5185\u5bb9\u4e2d\u6027",
|
|
"value": 3097
|
|
},
|
|
{
|
|
"name": "\u5185\u5bb9\u8f83\u4e3a\u6b63\u9762",
|
|
"value": 2928
|
|
},
|
|
{
|
|
"name": "\u5185\u5bb9\u975e\u5e38\u6b63\u9762",
|
|
"value": 5213
|
|
}
|
|
],
|
|
"radius": [
|
|
"0%",
|
|
"75%"
|
|
],
|
|
"center": [
|
|
"50%",
|
|
"50%"
|
|
],
|
|
"roseType": "area",
|
|
"label": {
|
|
"show": true,
|
|
"position": "top",
|
|
"margin": 8
|
|
}
|
|
}
|
|
],
|
|
"legend": [
|
|
{
|
|
"data": [
|
|
"\u5185\u5bb9\u6781\u5ea6\u8d1f\u9762",
|
|
"\u5185\u5bb9\u8f83\u4e3a\u8d1f\u9762",
|
|
"\u5185\u5bb9\u4e2d\u6027",
|
|
"\u5185\u5bb9\u8f83\u4e3a\u6b63\u9762",
|
|
"\u5185\u5bb9\u975e\u5e38\u6b63\u9762"
|
|
],
|
|
"selected": {},
|
|
"show": true,
|
|
"padding": 5,
|
|
"itemGap": 10,
|
|
"itemWidth": 25,
|
|
"itemHeight": 14
|
|
}
|
|
],
|
|
"tooltip": {
|
|
"show": true,
|
|
"trigger": "item",
|
|
"triggerOn": "mousemove|click",
|
|
"axisPointer": {
|
|
"type": "line"
|
|
},
|
|
"showContent": true,
|
|
"alwaysShowContent": false,
|
|
"showDelay": 0,
|
|
"hideDelay": 100,
|
|
"textStyle": {
|
|
"fontSize": 14
|
|
},
|
|
"borderWidth": 0,
|
|
"padding": 5
|
|
},
|
|
"title": [
|
|
{
|
|
"text": "\u5468\u6770\u4f26\u7684\u6b4c\u8bcd\u60c5\u611f\u5206\u6790",
|
|
"padding": 5,
|
|
"itemGap": 10
|
|
}
|
|
]
|
|
};
|
|
chart_4ba593a441c441c4a398eae018a3d534.setOption(option_4ba593a441c441c4a398eae018a3d534);
|
|
</script>
|
|
</body>
|
|
</html>
|