You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
334 lines
9.8 KiB
334 lines
9.8 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Awesome-pyecharts</title>
|
|
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
|
|
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts-wordcloud.min.js"></script>
|
|
|
|
</head>
|
|
<body >
|
|
<div id="9a0ef05212cd458ca187b688bb6af772" class="chart-container" style="width:50%; height:600px; "></div>
|
|
<script>
|
|
var chart_9a0ef05212cd458ca187b688bb6af772 = echarts.init(
|
|
document.getElementById('9a0ef05212cd458ca187b688bb6af772'), 'white', {renderer: 'canvas'});
|
|
var option_9a0ef05212cd458ca187b688bb6af772 = {
|
|
"animation": true,
|
|
"animationThreshold": 2000,
|
|
"animationDuration": 1000,
|
|
"animationEasing": "cubicOut",
|
|
"animationDelay": 0,
|
|
"animationDurationUpdate": 300,
|
|
"animationEasingUpdate": "cubicOut",
|
|
"animationDelayUpdate": 0,
|
|
"aria": {
|
|
"enabled": false
|
|
},
|
|
"color": [
|
|
"#5470c6",
|
|
"#91cc75",
|
|
"#fac858",
|
|
"#ee6666",
|
|
"#73c0de",
|
|
"#3ba272",
|
|
"#fc8452",
|
|
"#9a60b4",
|
|
"#ea7ccc"
|
|
],
|
|
"series": [
|
|
{
|
|
"type": "wordCloud",
|
|
"shape": "diamond",
|
|
"rotationRange": [
|
|
0,
|
|
0
|
|
],
|
|
"rotationStep": 45,
|
|
"girdSize": 20,
|
|
"sizeRange": [
|
|
12,
|
|
60
|
|
],
|
|
"data": [
|
|
{
|
|
"name": "\u5267\u60c5",
|
|
"value": 185,
|
|
"textStyle": {
|
|
"color": "rgb(144,87,108)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u7231\u60c5",
|
|
"value": 58,
|
|
"textStyle": {
|
|
"color": "rgb(11,144,99)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u559c\u5267",
|
|
"value": 52,
|
|
"textStyle": {
|
|
"color": "rgb(101,30,121)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u5192\u9669",
|
|
"value": 50,
|
|
"textStyle": {
|
|
"color": "rgb(105,60,17)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u5947\u5e7b",
|
|
"value": 42,
|
|
"textStyle": {
|
|
"color": "rgb(91,86,58)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u72af\u7f6a",
|
|
"value": 41,
|
|
"textStyle": {
|
|
"color": "rgb(150,3,11)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u52a8\u753b",
|
|
"value": 37,
|
|
"textStyle": {
|
|
"color": "rgb(76,127,54)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u60ca\u609a",
|
|
"value": 33,
|
|
"textStyle": {
|
|
"color": "rgb(73,80,4)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u52a8\u4f5c",
|
|
"value": 31,
|
|
"textStyle": {
|
|
"color": "rgb(121,120,144)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u60ac\u7591",
|
|
"value": 29,
|
|
"textStyle": {
|
|
"color": "rgb(65,44,37)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u79d1\u5e7b",
|
|
"value": 23,
|
|
"textStyle": {
|
|
"color": "rgb(88,124,40)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u5bb6\u5ead",
|
|
"value": 20,
|
|
"textStyle": {
|
|
"color": "rgb(29,0,106)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u4f20\u8bb0",
|
|
"value": 15,
|
|
"textStyle": {
|
|
"color": "rgb(26,5,107)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u6218\u4e89",
|
|
"value": 15,
|
|
"textStyle": {
|
|
"color": "rgb(105,74,150)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u53e4\u88c5",
|
|
"value": 10,
|
|
"textStyle": {
|
|
"color": "rgb(123,135,107)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u97f3\u4e50",
|
|
"value": 9,
|
|
"textStyle": {
|
|
"color": "rgb(2,156,141)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u5386\u53f2",
|
|
"value": 8,
|
|
"textStyle": {
|
|
"color": "rgb(157,129,38)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u540c\u6027",
|
|
"value": 8,
|
|
"textStyle": {
|
|
"color": "rgb(135,113,124)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u6b4c\u821e",
|
|
"value": 6,
|
|
"textStyle": {
|
|
"color": "rgb(81,1,6)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u513f\u7ae5",
|
|
"value": 4,
|
|
"textStyle": {
|
|
"color": "rgb(13,13,136)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u6b66\u4fa0",
|
|
"value": 4,
|
|
"textStyle": {
|
|
"color": "rgb(121,0,36)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u897f\u90e8",
|
|
"value": 3,
|
|
"textStyle": {
|
|
"color": "rgb(14,21,134)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u707e\u96be",
|
|
"value": 2,
|
|
"textStyle": {
|
|
"color": "rgb(134,4,142)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u8fd0\u52a8",
|
|
"value": 2,
|
|
"textStyle": {
|
|
"color": "rgb(78,109,16)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u60c5\u8272",
|
|
"value": 2,
|
|
"textStyle": {
|
|
"color": "rgb(37,70,97)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u7eaa\u5f55\u7247",
|
|
"value": 2,
|
|
"textStyle": {
|
|
"color": "rgb(60,110,108)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u6050\u6016",
|
|
"value": 2,
|
|
"textStyle": {
|
|
"color": "rgb(41,43,70)"
|
|
}
|
|
},
|
|
{
|
|
"name": "\u4e2d\u56fd\u5927\u9646",
|
|
"value": 1,
|
|
"textStyle": {
|
|
"color": "rgb(131,90,139)"
|
|
}
|
|
}
|
|
],
|
|
"drawOutOfBound": false,
|
|
"textStyle": {
|
|
"emphasis": {}
|
|
},
|
|
"rippleEffect": {
|
|
"show": true,
|
|
"brushType": "stroke",
|
|
"scale": 2.5,
|
|
"period": 4
|
|
},
|
|
"textstyle_opts": {
|
|
"fontSize": 500
|
|
}
|
|
}
|
|
],
|
|
"legend": [
|
|
{
|
|
"data": [],
|
|
"selected": {},
|
|
"show": true,
|
|
"padding": 5,
|
|
"itemGap": 10,
|
|
"itemWidth": 25,
|
|
"itemHeight": 14,
|
|
"backgroundColor": "transparent",
|
|
"borderColor": "#ccc",
|
|
"borderRadius": 0,
|
|
"pageButtonItemGap": 5,
|
|
"pageButtonPosition": "end",
|
|
"pageFormatter": "{current}/{total}",
|
|
"pageIconColor": "#2f4554",
|
|
"pageIconInactiveColor": "#aaa",
|
|
"pageIconSize": 15,
|
|
"animationDurationUpdate": 800,
|
|
"selector": false,
|
|
"selectorPosition": "auto",
|
|
"selectorItemGap": 7,
|
|
"selectorButtonGap": 10
|
|
}
|
|
],
|
|
"tooltip": {
|
|
"show": true,
|
|
"trigger": "item",
|
|
"triggerOn": "mousemove|click",
|
|
"axisPointer": {
|
|
"type": "line"
|
|
},
|
|
"showContent": true,
|
|
"alwaysShowContent": false,
|
|
"showDelay": 0,
|
|
"hideDelay": 100,
|
|
"enterable": false,
|
|
"confine": false,
|
|
"appendToBody": false,
|
|
"transitionDuration": 0.4,
|
|
"formatter": "{b}:{c}",
|
|
"textStyle": {
|
|
"fontSize": 14
|
|
},
|
|
"borderWidth": 0,
|
|
"padding": 5,
|
|
"order": "seriesAsc"
|
|
},
|
|
"title": [
|
|
{
|
|
"show": true,
|
|
"target": "blank",
|
|
"subtarget": "blank",
|
|
"left": "center",
|
|
"padding": 5,
|
|
"itemGap": 10,
|
|
"textAlign": "auto",
|
|
"textVerticalAlign": "auto",
|
|
"triggerEvent": false
|
|
}
|
|
]
|
|
};
|
|
chart_9a0ef05212cd458ca187b688bb6af772.setOption(option_9a0ef05212cd458ca187b688bb6af772);
|
|
window.addEventListener('resize', function(){
|
|
chart_9a0ef05212cd458ca187b688bb6af772.resize();
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|