Commit 50c5bca8 by BellCodeEditor

auto save

parent 94dbc7fd
Showing with 395 additions and 1 deletions
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Awesome-pyecharts</title>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
</head>
<body>
<div id="b011cbdfcfd1459bb0896e886204ec76" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_b011cbdfcfd1459bb0896e886204ec76 = echarts.init(
document.getElementById('b011cbdfcfd1459bb0896e886204ec76'), 'white', {renderer: 'canvas'});
var option_b011cbdfcfd1459bb0896e886204ec76 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"color": [
"#c23531",
"#2f4554",
"#61a0a8",
"#d48265",
"#749f83",
"#ca8622",
"#bda29a",
"#6e7074",
"#546570",
"#c4ccd3",
"#f05b72",
"#ef5b9c",
"#f47920",
"#905a3d",
"#fab27b",
"#2a5caa",
"#444693",
"#726930",
"#b2d235",
"#6d8346",
"#ac6767",
"#1d953f",
"#6950a1",
"#918597"
],
"series": [
{
"type": "line",
"name": "xiaomingdefengshu",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
"smooth": false,
"clip": true,
"step": false,
"data": [
[
"\u8bed\u6587",
88
],
[
"\u6570\u5b66",
95
],
[
"\u82f1\u8bed",
96
],
[
"\u5730\u7406",
94
],
[
"\u5386\u53f2",
62
],
[
"\u653f\u6cbb",
66
],
[
"\u751f\u7269",
64
],
[
"\u5316\u5b66",
93
],
[
"\u7269\u7406",
89
]
],
"hoverAnimation": true,
"label": {
"show": true,
"position": "top",
"margin": 8
},
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
},
"areaStyle": {
"opacity": 0
},
"zlevel": 0,
"z": 0
},
{
"type": "line",
"name": "efengshu",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
"smooth": false,
"clip": true,
"step": false,
"data": [
[
"\u8bed\u6587",
8
],
[
"\u6570\u5b66",
900
],
[
"\u82f1\u8bed",
9
],
[
"\u5730\u7406",
9
],
[
"\u5386\u53f2",
8
],
[
"\u653f\u6cbb",
0
],
[
"\u751f\u7269",
6
],
[
"\u5316\u5b66",
9
],
[
"\u7269\u7406",
8
]
],
"hoverAnimation": true,
"label": {
"show": true,
"position": "top",
"margin": 8
},
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
},
"areaStyle": {
"opacity": 0
},
"zlevel": 0,
"z": 0
}
],
"legend": [
{
"data": [
"xiaomingdefengshu",
"efengshu"
],
"selected": {
"xiaomingdefengshu": true,
"efengshu": true
}
}
],
"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
},
"xAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
},
"data": [
"\u8bed\u6587",
"\u6570\u5b66",
"\u82f1\u8bed",
"\u5730\u7406",
"\u5386\u53f2",
"\u653f\u6cbb",
"\u751f\u7269",
"\u5316\u5b66",
"\u7269\u7406"
]
}
],
"yAxis": [
{
"show": true,
"scale": false,
"nameLocation": "end",
"nameGap": 15,
"gridIndex": 0,
"inverse": false,
"offset": 0,
"splitNumber": 5,
"minInterval": 0,
"splitLine": {
"show": false,
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
}
}
}
]
};
chart_b011cbdfcfd1459bb0896e886204ec76.setOption(option_b011cbdfcfd1459bb0896e886204ec76);
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Awesome-pyecharts</title>
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
</head>
<body>
<div id="3fb72df642da4e908b5d58e1ae069f11" class="chart-container" style="width:900px; height:500px;"></div>
<script>
var chart_3fb72df642da4e908b5d58e1ae069f11 = echarts.init(
document.getElementById('3fb72df642da4e908b5d58e1ae069f11'), 'white', {renderer: 'canvas'});
var option_3fb72df642da4e908b5d58e1ae069f11 = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
"animationEasing": "cubicOut",
"animationDelay": 0,
"animationDurationUpdate": 300,
"animationEasingUpdate": "cubicOut",
"animationDelayUpdate": 0,
"color": [
"#c23531",
"#2f4554",
"#61a0a8",
"#d48265",
"#749f83",
"#ca8622",
"#bda29a",
"#6e7074",
"#546570",
"#c4ccd3",
"#f05b72",
"#ef5b9c",
"#f47920",
"#905a3d",
"#fab27b",
"#2a5caa",
"#444693",
"#726930",
"#b2d235",
"#6d8346",
"#ac6767",
"#1d953f",
"#6950a1",
"#918597"
],
"series": [
{
"type": "pie",
"name": "nj",
"clockwise": true,
"data": [
{
"name": "a",
"value": 33
},
{
"name": "a",
"value": 33
},
{
"name": "a",
"value": 33
}
],
"radius": [
"30%",
"70%"
],
"center": [
"50%",
"50%"
],
"label": {
"show": true,
"position": "top",
"margin": 8
}
}
],
"legend": [
{
"data": [
"a"
],
"selected": {}
}
],
"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
}
};
chart_3fb72df642da4e908b5d58e1ae069f11.setOption(option_3fb72df642da4e908b5d58e1ae069f11);
</script>
</body>
</html>
from pyecharts.charts import Bar from pyecharts.charts import Pie
subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"] subjects = ["语文","数学","英语","地理","历史","政治","生物","化学","物理"]
scores = [88, 95, 96, 94, 62, 66, 64, 93, 89] scores = [88, 95, 96, 94, 62, 66, 64, 93, 89]
scores0 = [8, 900, 9, 9, 8, 0, 6, 9, 8]
pie=Pie()
pie.add(
'nj',[('a',33),('a',33),('a',33)],
radius=['30%',"70%"]
)
pie.render('fi.html')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment