<!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>
</head>
<body>
<div id="chart-panel"></div>
<!-- 为ECharts准备一个具备大小(宽高)的Dom -->
<script type="text/javascript">
//初始化图表对象。
var myChart = echarts.init(document.getElementById('chart-panel'), 'dark');
//图表配置。
let option = {
toolbox: {
show: true,
feature: {
saveAsImage: {},
},
},
grid: {
left: "2%",
top: "10%",
right: "2%",
bottom: "5%",
containLabel: true,
},
xAxis: [
{
type: "category",
data: [
"集装箱",
"起重机",
"龙门起重机",
"吊运起重机",
"卸船机",
"取料机",
"装船机",
"门坐起重机",
"堆离机",
],
axisLine: {
show: true,
},
axisTick: {
show: true,
alignWithLabel: true,
},
splitLine: {
show: false,
},
axisLabel: {
fontSize: 14,
color: "#FFFFFF",
},
},
],
yAxis: [
{
type: "value",
name: "设备数量(套)",
nameGap: 20,
interval: 20,
axisLabel: {
color: "#F1F1F1",
show: true,
fontSize: 14,
},
splitLine: {
lineStyle: {
opacity: 0.2,
type: "dashed",
},
show: true,
},
axisLine: {
show: false,
},
axisTick: {
show: false,
},
},
{
type: "value",
name: "设备数量(套)",
nameGap: 20,
interval: 25,
axisLabel: {
color: "#F1F1F1",
show: true,
fontSize: 14,
},
splitLine: {
show: false,
},
axisLine: {
show: false,
},
axisTick: {
show: false,
},
},
],
series: [
{
type: "bar",
data: [79, 49, 44, 74, 45, 48, 32, 54, 33],
barMaxWidth: 25,
itemStyle: {
color: "rgba(0, 167, 251, 0.7)",
},
showBackground: true,
backgroundStyle: {
opacity: 0.5,
},
},
{
type: "line",
data: [
87,
45,
56,
54,
45.7,
53,
29,
89.3,
78.7,
],
yAxisIndex: 1,
smooth: 0.35,
lineStyle: {
color: "#fcc03f",
},
areaStyle: {
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: "rgba(255,120,0,0.5)",
},
{
offset: 0.7,
color: "rgba(255,120,0,0)",
},
],
global: false,
},
},
symbolSize: 5,
symbol: "circle",
showSymbol: true,
itemStyle: {
color: "#FFFFFF",
},
},
{
type: "line",
data: [
87,
45,
56,
54,
45.7,
53,
29,
89.3,
78.7,
],
yAxisIndex: 1,
lineStyle: {
color: "rgba(252, 192, 63, 0)",
},
symbolSize: 12,
symbol: "circle",
showSymbol: true,
itemStyle: {
color: "rgba(255, 255, 255, 0)",
borderColor: "#fcc03f",
borderWidth: 2,
},
label: {
show: true,
position: "right",
borderWidth: 1,
borderColor: "#fcc03f",
color: "#fcc03f",
fontSize: 12,
backgroundColor: "rgba(0, 0, 0, 0.6)",
padding: [2, 10],
},
zlevel: 5,
},
{
type: "line",
data: [79, 49, 44, 74, 45, 48, 32, 54, 33],
yAxisIndex: 0,
lineStyle: {
color: "rgba(252, 192, 63, 0)",
},
symbolSize: 5,
symbol: "circle",
showSymbol: true,
itemStyle: {
color: "#FFFFFF",
},
label: {
show: true,
position: "top",
color: "#00a7fb",
fontSize: 12,
},
zlevel: 5,
symbolOffset: [0, -2],
},
],
};
//将图表对象和图表配置进行关联。
myChart.setOption(option);
</script>
</body>
</html>
图表制作解说(目标1000个图表)
- 粉丝: 1222
- 资源: 394
最新资源
- 1233211234567
- 泵机群伺服质量管控大数据平台技术方案
- 数学公式编辑器安装包,好用便捷,推荐使用Axmath2.5版本公式编辑器
- 双馈风力发电机DFIG滑模控制SMC MATLAB Simulink仿真模型(成品) 1、采用非线性控制滑模控制策略 2、采用PI调节器为外环滑模控制器SMC作为内环控制,跟传统的双PI环相比,功率的
- 国产数据库:高斯数据库连接工具
- phoenix-winphlash-v1.7.16.0
- uds bootloader stm32 完整方案 iso15765 iso14429 简化学习难度 需要可以加好友 下载42k速度在15秒左右 第二版上位机:模仿vector vflash 设计
- 移动机器人控制软件框架设计与实现
- 单片机 stm32 差分升级 增量升级算法源码,提供移植 纯c编写跨平因为是程序源码 IAP升级 OTA升级 物联网 车联网 适用
- 解决升级WIN11后微软远程访问堡垒机内的系统花屏替换文件
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈