99 lines
2.6 KiB
HTML
99 lines
2.6 KiB
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="345dd7e07d42460692cf1458cbe2043a" class="chart-container" style="width:900px; height:500px;"></div>
|
|
<script>
|
|
var chart_345dd7e07d42460692cf1458cbe2043a = echarts.init(
|
|
document.getElementById('345dd7e07d42460692cf1458cbe2043a'), 'white', {renderer: 'canvas'});
|
|
var option_345dd7e07d42460692cf1458cbe2043a = {
|
|
"animation": true,
|
|
"animationThreshold": 2000,
|
|
"animationDuration": 1000,
|
|
"animationEasing": "cubicOut",
|
|
"animationDelay": 0,
|
|
"animationDurationUpdate": 300,
|
|
"animationEasingUpdate": "cubicOut",
|
|
"animationDelayUpdate": 0,
|
|
"color": "#ADD8E6",
|
|
"series": [
|
|
{
|
|
"type": "funnel",
|
|
"name": "\u5546\u54c1",
|
|
"data": [
|
|
{
|
|
"name": "sat1",
|
|
"value": 11
|
|
},
|
|
{
|
|
"name": "sta2",
|
|
"value": 12
|
|
},
|
|
{
|
|
"name": "sta3",
|
|
"value": 13
|
|
}
|
|
],
|
|
"sort": "ascending",
|
|
"gap": 0,
|
|
"label": {
|
|
"show": true,
|
|
"position": "inside",
|
|
"margin": 8
|
|
}
|
|
}
|
|
],
|
|
"legend": [
|
|
{
|
|
"data": [
|
|
"sta3",
|
|
"sta2",
|
|
"sat1"
|
|
],
|
|
"selected": {
|
|
"sat1": true,
|
|
"sta2": true,
|
|
"sta3": true
|
|
},
|
|
"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": "Funnel-Sort \uff08ascending\uff09",
|
|
"padding": 5,
|
|
"itemGap": 10
|
|
}
|
|
]
|
|
};
|
|
chart_345dd7e07d42460692cf1458cbe2043a.setOption(option_345dd7e07d42460692cf1458cbe2043a);
|
|
</script>
|
|
</body>
|
|
</html>
|