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.
keshe/flaskProject/static/top10_highratedyear_pie.html

188 lines
5.2 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>
</head>
<body >
<div id="fb946e9a366343d093617147cf5134a3" class="chart-container" style="width:900px; height:500px; "></div>
<script>
var chart_fb946e9a366343d093617147cf5134a3 = echarts.init(
document.getElementById('fb946e9a366343d093617147cf5134a3'), 'white', {renderer: 'canvas'});
var option_fb946e9a366343d093617147cf5134a3 = {
"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": "pie",
"colorBy": "data",
"legendHoverLink": true,
"selectedMode": false,
"selectedOffset": 10,
"clockwise": true,
"startAngle": 90,
"minAngle": 0,
"minShowLabelAngle": 0,
"avoidLabelOverlap": true,
"stillShowZeroSum": true,
"percentPrecision": 2,
"showEmptyCircle": true,
"emptyCircleStyle": {
"color": "lightgray",
"borderColor": "#000",
"borderWidth": 0,
"borderType": "solid",
"borderDashOffset": 0,
"borderCap": "butt",
"borderJoin": "bevel",
"borderMiterLimit": 10,
"opacity": 1
},
"data": [
{
"name": "1994\u00a0",
"value": 3
},
{
"name": "1993\u00a0",
"value": 2
},
{
"name": "1997\u00a0",
"value": 2
},
{
"name": "1957\u00a0",
"value": 1
},
{
"name": "1982(\u4e2d\u56fd\u5927\u9646)\u00a0",
"value": 1
},
{
"name": "1984",
"value": 1
}
],
"radius": [
"30%",
"75%"
],
"center": [
"50%",
"50%"
],
"roseType": "radius",
"label": {
"show": false,
"margin": 8
},
"labelLine": {
"show": true,
"showAbove": false,
"length": 15,
"length2": 15,
"smooth": false,
"minTurnAngle": 90,
"maxSurfaceAngle": 90
}
}
],
"legend": [
{
"data": [
"1994\u00a0",
"1993\u00a0",
"1997\u00a0",
"1957\u00a0",
"1982(\u4e2d\u56fd\u5927\u9646)\u00a0",
"1984"
],
"selected": {},
"show": true,
"left": "2%",
"top": "15%",
"orient": "vertical",
"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,
"textStyle": {
"fontSize": 14
},
"borderWidth": 0,
"padding": 5,
"order": "seriesAsc"
},
"title": [
{
"show": true,
"text": "Top10\u9ad8\u5206\u7535\u5f71\u6570\u91cf\u6700\u591a\u7684\u5e74\u4efd",
"target": "blank",
"subtarget": "blank",
"padding": 5,
"itemGap": 10,
"textAlign": "auto",
"textVerticalAlign": "auto",
"triggerEvent": false
}
]
};
chart_fb946e9a366343d093617147cf5134a3.setOption(option_fb946e9a366343d093617147cf5134a3);
</script>
</body>
</html>