添加目录和文件
This commit is contained in:
parent
70acd5c4d7
commit
af2aab0262
|
|
@ -0,0 +1,394 @@
|
|||
<!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="28716de887f142fab3919a52f56a9c87" class="chart-container" style="width:500px; height:350px; "></div>
|
||||
<script>
|
||||
var chart_28716de887f142fab3919a52f56a9c87 = echarts.init(
|
||||
document.getElementById('28716de887f142fab3919a52f56a9c87'), 'white', {renderer: 'canvas'});
|
||||
var option_28716de887f142fab3919a52f56a9c87 = {
|
||||
"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": "heatmap",
|
||||
"name": "occupation",
|
||||
"coordinateSystem": "cartesian2d",
|
||||
"data": [
|
||||
[
|
||||
0,
|
||||
0,
|
||||
"1.00"
|
||||
],
|
||||
[
|
||||
0,
|
||||
1,
|
||||
"0.05"
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
"0.30"
|
||||
],
|
||||
[
|
||||
0,
|
||||
3,
|
||||
"0.26"
|
||||
],
|
||||
[
|
||||
1,
|
||||
0,
|
||||
"0.05"
|
||||
],
|
||||
[
|
||||
1,
|
||||
1,
|
||||
"1.00"
|
||||
],
|
||||
[
|
||||
1,
|
||||
2,
|
||||
"0.48"
|
||||
],
|
||||
[
|
||||
1,
|
||||
3,
|
||||
"0.14"
|
||||
],
|
||||
[
|
||||
2,
|
||||
0,
|
||||
"0.30"
|
||||
],
|
||||
[
|
||||
2,
|
||||
1,
|
||||
"0.48"
|
||||
],
|
||||
[
|
||||
2,
|
||||
2,
|
||||
"1.00"
|
||||
],
|
||||
[
|
||||
2,
|
||||
3,
|
||||
"0.10"
|
||||
],
|
||||
[
|
||||
3,
|
||||
0,
|
||||
"0.26"
|
||||
],
|
||||
[
|
||||
3,
|
||||
1,
|
||||
"0.14"
|
||||
],
|
||||
[
|
||||
3,
|
||||
2,
|
||||
"0.10"
|
||||
],
|
||||
[
|
||||
3,
|
||||
3,
|
||||
"1.00"
|
||||
]
|
||||
],
|
||||
"label": {
|
||||
"show": true,
|
||||
"position": "inside",
|
||||
"color": "#86909C",
|
||||
"margin": 8,
|
||||
"fontSize": "12px",
|
||||
"fontWeight": "normal",
|
||||
"fontFamily": "PingFang SC"
|
||||
},
|
||||
"selectedMode": false,
|
||||
"zlevel": 0,
|
||||
"z": 2
|
||||
}
|
||||
],
|
||||
"legend": [
|
||||
{
|
||||
"data": [
|
||||
"occupation"
|
||||
],
|
||||
"selected": {},
|
||||
"show": false,
|
||||
"padding": 5,
|
||||
"itemGap": 10,
|
||||
"itemWidth": 10,
|
||||
"itemHeight": 10,
|
||||
"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,
|
||||
"left": "center",
|
||||
"top": "top",
|
||||
"orient": "horizontal",
|
||||
"align": "auto",
|
||||
"inactiveColor": "#86909C",
|
||||
"textStyle": {
|
||||
"color": "#86909C",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "normal",
|
||||
"fontFamily": "PingFang SC",
|
||||
"fontSize": "12px"
|
||||
},
|
||||
"borderWidth": 0
|
||||
}
|
||||
],
|
||||
"tooltip": {
|
||||
"show": false,
|
||||
"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"
|
||||
},
|
||||
"xAxis": [
|
||||
{
|
||||
"show": true,
|
||||
"scale": false,
|
||||
"nameLocation": "end",
|
||||
"nameGap": 15,
|
||||
"nameTextStyle": {
|
||||
"color": "#86909C",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "bold",
|
||||
"fontFamily": "PingFang SC",
|
||||
"fontSize": "14px"
|
||||
},
|
||||
"gridIndex": 0,
|
||||
"axisLine": {
|
||||
"show": true,
|
||||
"onZero": true,
|
||||
"onZeroAxisIndex": 0,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid",
|
||||
"color": "#86909C"
|
||||
}
|
||||
},
|
||||
"axisTick": {
|
||||
"show": true,
|
||||
"alignWithLabel": false,
|
||||
"inside": true,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid",
|
||||
"color": "#86909C"
|
||||
}
|
||||
},
|
||||
"axisLabel": {
|
||||
"show": true,
|
||||
"position": "inside",
|
||||
"color": "#86909C",
|
||||
"rotate": 30,
|
||||
"margin": 8,
|
||||
"fontSize": "12px",
|
||||
"fontWeight": "normal",
|
||||
"fontFamily": "PingFang SC"
|
||||
},
|
||||
"inverse": false,
|
||||
"offset": 0,
|
||||
"splitNumber": 5,
|
||||
"minInterval": 0,
|
||||
"splitLine": {
|
||||
"show": false,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "dashed",
|
||||
"color": "#E5E6EB"
|
||||
}
|
||||
},
|
||||
"data": [
|
||||
"gender",
|
||||
"age",
|
||||
"occupation",
|
||||
"genres"
|
||||
]
|
||||
}
|
||||
],
|
||||
"yAxis": [
|
||||
{
|
||||
"show": true,
|
||||
"scale": false,
|
||||
"nameLocation": "end",
|
||||
"nameGap": 15,
|
||||
"nameTextStyle": {
|
||||
"color": "#86909C",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "bold",
|
||||
"fontFamily": "PingFang SC",
|
||||
"fontSize": "14px"
|
||||
},
|
||||
"gridIndex": 0,
|
||||
"axisLine": {
|
||||
"show": true,
|
||||
"onZero": true,
|
||||
"onZeroAxisIndex": 0,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid",
|
||||
"color": "#86909C"
|
||||
}
|
||||
},
|
||||
"axisTick": {
|
||||
"show": true,
|
||||
"alignWithLabel": false,
|
||||
"inside": true,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid",
|
||||
"color": "#86909C"
|
||||
}
|
||||
},
|
||||
"axisLabel": {
|
||||
"show": true,
|
||||
"position": "inside",
|
||||
"color": "#86909C",
|
||||
"rotate": 30,
|
||||
"margin": 8,
|
||||
"fontSize": "12px",
|
||||
"fontWeight": "normal",
|
||||
"fontFamily": "PingFang SC"
|
||||
},
|
||||
"inverse": false,
|
||||
"offset": 0,
|
||||
"splitNumber": 5,
|
||||
"minInterval": 0,
|
||||
"splitLine": {
|
||||
"show": false,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "dashed",
|
||||
"color": "#E5E6EB"
|
||||
}
|
||||
},
|
||||
"data": [
|
||||
"gender",
|
||||
"age",
|
||||
"occupation",
|
||||
"genres"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": [
|
||||
{
|
||||
"show": true,
|
||||
"target": "blank",
|
||||
"subtarget": "blank",
|
||||
"padding": 5,
|
||||
"itemGap": 10,
|
||||
"textAlign": "auto",
|
||||
"textVerticalAlign": "auto",
|
||||
"triggerEvent": false
|
||||
}
|
||||
],
|
||||
"visualMap": {
|
||||
"show": true,
|
||||
"type": "continuous",
|
||||
"min": 0,
|
||||
"max": 1,
|
||||
"textStyle": {
|
||||
"color": "#86909C",
|
||||
"fontStyle": "normal",
|
||||
"fontWeight": "normal",
|
||||
"fontFamily": "PingFang SC",
|
||||
"fontSize": "12px"
|
||||
},
|
||||
"inRange": {
|
||||
"color": [
|
||||
"#E8F3FF",
|
||||
"#165DFF"
|
||||
]
|
||||
},
|
||||
"calculable": true,
|
||||
"inverse": false,
|
||||
"precision": 2,
|
||||
"splitNumber": 5,
|
||||
"hoverLink": true,
|
||||
"orient": "horizontal",
|
||||
"left": "center",
|
||||
"top": "top",
|
||||
"padding": 5,
|
||||
"showLabel": true,
|
||||
"itemWidth": 20,
|
||||
"itemHeight": 140,
|
||||
"borderWidth": 0
|
||||
}
|
||||
};
|
||||
chart_28716de887f142fab3919a52f56a9c87.setOption(option_28716de887f142fab3919a52f56a9c87);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue