<!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>
<!-- 为ECharts准备一个具备大小(宽高)的Dom -->
<script type="text/javascript">
//初始化图表对象。
var myChart = echarts.init(document.getElementById('chart-panel'));
//图表配置。
var dataArr = 60;
var colorSet = {
color: '#22B95E'
};
var color1 = {
type: "linear",
x: 0,
y: 0,
x2: 1,
y2: 1,
colorStops: [
{
offset: 0,
color: "rgba(255,255,255,0.1)"
},
{
offset: 1,
color: "rgba(255,255,255,0.3)"
}
],
global: false
}
var color2 = {
type: "linear",
x: 0,
y: 0,
x2: 1,
y2: 1,
colorStops: [
{
offset: 0,
color: "#30DBBA"
},
{
offset: 1,
color: "#2DE696"
}
],
global: false
}
let option = {
toolbox: {
show: true,
feature: {
saveAsImage: {},
},
},
backgroundColor: '#0E1327',
series: [
{
type: "gauge",
radius: '52%',
splitNumber: 5,
axisLine: {
lineStyle: {
color: [
[1, colorSet.color]
],
width: 2
}
},
axisLabel: {
show: true,
color: '#ffffff',
fontSize: 14,
fontFamily: 'SourceHanSansSC-Regular',
fontWeight: 'bold',
distance: -25,
},
axisTick: {
show: true,
splitNumber: 3,
distance: 10,
lineStyle: {
color: "white",
width: 1,
},
length: -6
},
splitLine: {
show: true,
length: -12,
distance: 12,
lineStyle: {
color: "white",
}
},
pointer: {
show: true,
length: '70%',
width: 3
},
itemStyle: {
color: "#ffffff"
},
detail: {
show: false,
},
data: [{
value: dataArr,
}],
animationDuration: 4000,
},
{
type: "gauge",
radius: '44%',
axisLine: {
lineStyle: {
color: [
[dataArr / 100, new echarts.graphic.LinearGradient(
0, 1, 0, 0, [{
offset: 0,
color: 'rgba(45,230,150,0)',
}, {
offset: 0.5,
color: 'rgba(45,230,150,0.2)',
},
{
offset: 1,
color: 'rgba(45,230,150,1)',
}
]
)],
],
width: 100
},
},
axisLabel: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
show: false,
},
},
{
type: "gauge",
radius: '46%',
axisLine: {
lineStyle: {
color: [
[dataArr / 100, color2],
],
width: 10
}
},
axisLabel: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
show: false,
},
},
{
type: "gauge",
radius: '18%',
axisLine: {
lineStyle: {
color: [
[1, colorSet.color]
],
width: 1
}
},
axisLabel: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
show: false,
},
pointer: {
show: false,
},
detail: {
formatter: function (value) {
if (value !== 0) {
var num = Math.round(value);
return parseInt(num).toFixed(0) + "%";
} else {
return 0;
}
},
offsetCenter: [0, 67],
textStyle: {
padding: [0, 0, 0, 0],
fontSize: 18,
color: "#ffffff"
}
},
title: {
show: true,
offsetCenter: [0, 46],
textStyle: {
color: "#fff",
fontSize: 14,
fontWeight: 400,
}
},
data: [{
name: "去年优良率",
value: dataArr,
}],
},
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论








收起资源包目录












共 3 条
- 1
资源评论

- #完美解决问题
- #运行顺畅
- #内容详尽
- #全网独家
- #注释完整

图表制作解说(目标1000个图表)
- 粉丝: 1584
- 资源: 531
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- Web简单手机购买页面
- DeepSeek使用介绍和其他内容
- 自然语言处理必备神器Huggingface系列实战.zip
- 毕业设计 基于Python+Mysql+Diango的带支付宝支付电商购物商城网站(源码+数据库+项目设计文档+静态页面设计),高分项目,开箱即用
- 毕业设计 基于Python+Mysql+Diango的失物招领平台系统(源码+数据库),高分项目,开箱即用
- 如何通过阅读习惯提升个人学习能力.doc
- 多元化阅读习惯的养成.doc
- 阅读习惯中的笔记与复习计划.doc
- 专注力在阅读习惯中的培养.doc
- 如何通过阅读习惯提升决策能力.doc
- 阅读习惯中的笔记整理技巧.doc
- 高效阅读习惯的建立.doc
- 阅读习惯中的笔记软件选择.doc
- 利用阅读习惯提升工作效率.doc
- 阅读习惯中的知识创新与创造.doc
- 阅读习惯中的文学鉴赏.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
