<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
#chart-panel {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 1000px;
height: 750px;
}
</style>
<script src="./lib/5.5.0/echarts.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
</head>
<body>
<div id="chart-panel"></div>
<script type="text/javascript">
//初始化图表对象。
var myChart = echarts.init(document.getElementById('chart-panel'));
//图表配置。
let option = {
toolbox: {
feature: {
saveAsImage: {},
}
},
tooltip: {
trigger: 'item',
formatter: "{a} <br/>{b} : {c}%"
},
legend: {
show: true,
data: ["计划投入", "实际投入"]
},
series: [
{
color: ['#0000ff'],
name: '计划投入',
type: 'funnel',
width: '45%',
height: '70%',
x: '5%',
minSize: '10%',
funnelAlign: 'right',
sort: "descending",
data: [{
value: 30,
name: '下单30%'
}, {
value: 55,
name: '咨询55%'
},
{
value: 60,
name: '点击60%'
},
{
value: 66,
name: '访问66%'
}, {
value: 80,
name: '展现80%'
}
],
label: {
position: 'inside'
},
itemStyle: {
borderWidth: 0,
shadowBlur: 20,
shadowOffsetX: 0,
shadowOffsetY: 5,
shadowColor: 'rgba(0, 0, 0, 0.3)'
}
},
{
color: ['#67E0E3'],
name: '实际投入',
type: 'funnel',
width: '45%',
height: '70%',
x: '50%',
minSize: '10%',
funnelAlign: 'left',
data: [{
value: 35,
name: '下单35%'
}, {
value: 40,
name: '咨询40%'
},
{
value: 70,
name: '访问70%'
},
{
value: 90,
name: '点击90%'
},
{
value: 95,
name: '展现95%'
}
],
label: {
position: 'inside'
},
itemStyle: {
borderWidth: 0,
shadowBlur: 20,
shadowOffsetX: 0,
shadowOffsetY: 5,
shadowColor: 'rgba(0, 0, 0, 0.3)'
}
},
]
};
//将图表对象和图表配置进行关联。
myChart.setOption(option);
</script>
</body>
</html>

图表制作解说(目标1000个图表)
- 粉丝: 1879
最新资源
- 数据库查询技术在工程结算审计复核中的运用.docx
- 电子商务运营管理自考重点精题精选精心整理.doc
- 犀牛软件基础教程-其它课程-高中教育-教育专区.ppt
- 项目管理计划知识在小型应急工程中的应用.docx
- 业财融合下施工企业会计信息化建设探究.docx
- 大数据时代商务英语人才能力培养探究.docx
- 互联网对中专学校体育教育的影响及应对途径.docx
- 探讨分层教学在高中计算机教学中的应用.docx
- 网站建设报价单.docx
- 浅析美国计算机辅助语言教学的发展及其现实意义.docx
- MATLAB的双闭环直流调速系统设计.doc
- 项目管理在水利工程施工中的作用.docx
- 计算机组成原理习题5.doc
- 容一之网络沟通技巧培训一.ppt
- Java毕业设计开题分析方案.doc
- 计算机仿真技术在生物工程专业实践教学中的应用.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


