echarts故障统计多维柱状图 堆叠柱状图 柱状图Demo2
黑底:echarts链接:http://gallery.echartsjs.com/editor.html?c=xnP8JPeu4R
option = {
backgroundColor: 'black',
color: ['#FFC90E', '#ED1C24'],
title: {
text: '故障统计',
x: 'center',
textStyle: {
fontWeight: 'normal',
color: 'white',
fontSize: 18
},
},
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
legend: {
x: 'center',
y: 'bottom',
textStyle: {
color: 'white',
fontSize: 14
},
data: ['预警', '报警']
},
grid: {
left: '0%',
right: '0%',
bottom: '13%',
top: '16.5%',
containLabel: true,
},
toolbox: {
show: true,
//orient: 'vertical',//默认是横向,这个是纵向
x: 'center',
y: '65',
feature: {
dataView: { //数据视图
show: true,
readOnly: false
},
magicType: { //动态类型切换
show: true,
type: ['line', 'bar', 'stack', 'tiled']
// 折线, 柱状, 堆叠, 平铺
},
restore: { //重置
show: true
},
saveAsImage: { //保存图片
show: true
},
},
iconStyle: {
normal: {
color: 'white', //设置图标颜色
},
emphasis: { //字体颜色及位置
color: 'white',
textPosition: 'bottom'
}
}
},
xAxis: [{
type: 'category',
axisTick: {
alignWithLabel: true
},
axisLine: {
lineStyle: {
color: 'white',
}
},
axisLabel: {
show: true,
color: 'white',
textStyle: {
fontSize: 18
}
},
data: ['a', 'b', 'c']
}],
yAxis: [{
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: 'white',
}
},
axisLabel: {
color: 'white',
formatter: '{value}',
textStyle: {
fontSize: 18
}
},
type: 'value'
}],
series: [{
name: '预警',
type: 'bar',
barWidth: '15%',
data: [50, 66, 57],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: 'top', //在上方显示
textStyle: { //数值样式
color: 'white',
fontSize: 16
}
}
}
}
},
{
name: '报警',
type: 'bar',
barWidth: '15%',
data: [23, 12, 26],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: 'top', //在上方显示
textStyle: { //数值样式
color: 'white',
fontSize: 16
}
}
}
}
}
]
};
白底:echarts链接:http://gallery.echartsjs.com/editor.html?c=xNZkb_tsV1
option = {
backgroundColor: 'white',
color: ['#FFC90E', '#ED1C24'],
title: {
text: '故障统计',
x: 'center',
textStyle: {
fontWeight: 'normal',
color: 'white',
fontSize: 18
},
},
tooltip: {
trigger: 'axis',
axisPointer: { // 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
legend: {
x: 'center',
y: 'bottom',
textStyle: {
color: 'black',
fontSize: 14
},
data: ['预警', '报警']
},
grid: {
left: '0%',
right: '0%',
bottom: '13%',
top: '16.5%',
containLabel: true,
},
toolbox: {
show: true,
//orient: 'vertical',//默认是横向,这个是纵向
x: 'center',
y: '65',
feature: {
dataView: { //数据视图
show: true,
readOnly: false
},
magicType: { //动态类型切换
show: true,
type: ['line', 'bar', 'stack', 'tiled']
// 折线, 柱状, 堆叠, 平铺
},
restore: { //重置
show: true
},
saveAsImage: { //保存图片
show: true
},
},
iconStyle: {
normal: {
color: 'white', //设置图标颜色
},
emphasis: { //字体颜色及位置
color: 'black',
textPosition: 'bottom'
}
}
},
xAxis: [{
type: 'category',
axisTick: {
alignWithLabel: true
},
axisLine: {
lineStyle: {
color: 'black',
}
},
axisLabel: {
show: true,
color: 'black',
textStyle: {
fontSize: 18
}
},
data: ['a', 'b', 'c']
}],
yAxis: [{
splitLine: {
show: false
},
axisTick: {
show: false
},
axisLine: {
lineStyle: {
color: 'black',
}
},
axisLabel: {
color: 'black',
formatter: '{value}',
textStyle: {
fontSize: 18
}
},
type: 'value'
}],
series: [{
name: '预警',
type: 'bar',
barWidth: '15%',
data: [50, 66, 57],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: 'top', //在上方显示
textStyle: { //数值样式
color: 'black',
fontSize: 16
}
}
}
}
},
{
name: '报警',
type: 'bar',
barWidth: '15%',
data: [23, 12, 26],
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: 'top', //在上方显示
textStyle: { //数值样式
color: 'black',
fontSize: 16
}
}
}
}
}
]
};
echarts故障统计多维柱状图 堆叠柱状图 柱状图Demo2的更多相关文章
- echars 柱状图 堆叠状态 --》二次封装
<template> <!-- 柱状图 堆叠 1. 调用页面引入 import EcharsColumnStack from '@/components/echarsColumnSt ...
- Python交互图表可视化Bokeh:5 柱状图| 堆叠图| 直方图
柱状图/堆叠图/直方图 ① 单系列柱状图② 多系列柱状图③ 堆叠图④ 直方图 1.单系列柱状图 import numpy as np import pandas as pd import matplo ...
- PHP统计二维数组个数
count($arr) $arr = [ ['id'=>1,'name'=>'Tom'], ['id'=>2,'name'=>'Sun'], ['id'=>3,'name ...
- 线上 S1 故障是什么, 线上 S1 故障, 运维故障分级, 运维, 故障分级, P1 级别故障, 故障, P1 , S1
线上 S1 故障是什么 线上 S1 故障, 运维故障分级, 运维, 故障分级, P1 级别故障, 故障, P1 , S1 故障复盘 https://time.geekbang.org/column/a ...
- echarts 堆叠柱状图 + 渐变柱状图
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- 06. Matplotlib 2 |折线图| 柱状图| 堆叠图| 面积图| 填图| 饼图| 直方图| 散点图| 极坐标| 图箱型图
1.基本图表绘制 plt.plot() 图表类别:线形图.柱状图.密度图,以横纵坐标两个维度为主同时可延展出多种其他图表样式 plt.plot(kind='line', ax=None, figsiz ...
- pyhton matplotlib可视化图像基础(二维函数图、柱状图、饼图、直方图以及折线图)
//2019.07.22pyhton中matplotlib模块的应用pyhton中matplotlib是可视化图像库的第三方库,它可以实现图像的可视化,输出不同形式的图形1.可视化图形的输出和展示需要 ...
- 前端数据统计用做Bootstrap的一些柱状图、饼状图和折线图案例
Bootstrap,来自 Twitter,是目前最受欢迎的前端框架.Bootstrap 是基于 HTML.CSS.JAVASCRIPT 的,它简洁灵活,使得 Web 开发更加快捷. Bootstrap ...
- 使用ECharts报表统计公司考勤加班,大家加班多吗?
最近个项目已经连续加班1个月多,因为公司经常有在外面客户现场或出差的情况,人事每个月初会把上个月的份考勤打卡记录全部发出来,让我们对自己的考勤,突然想到可根据大家打卡时间记录统计每天工作时间,看大家是 ...
随机推荐
- ABAP-权限查询-用户信息系统
事务代码:SUIM
- input点击后的 默认边框去除
转自 http://blog.sina.com.cn/s/blog_9f1cb4670102v47g.html css文件里加句话:*:focus { outline: none; } 或 input ...
- 跨域(二)——WebSocket
严格地说,WebSocket技术不属于HTML5,这个技术是对HTTP无状态连接的一种革新,本质就是一种持久性socket连接,在浏览器客户端通过javascript进行初始化连接后,就可以监听相关的 ...
- 构造函数,C++内存管理,内存泄漏定位
构造函数 1.构造顺序 虚基类构造函数,基类构造函数,类对象构造函数,自己的构造函数 2.必须使用初始化列表 (1) 引用成员,常量成员: (2) 基类没默认构造函数(自己重载覆盖了), (3)类对象 ...
- [C语言]数据类型与计算
------------------------------------------------------------------------------------------------- 实际 ...
- 使用jQuery+huandlebars遍历数组
兼容ie8(很实用,复制过来,仅供技术参考,更详细内容请看源地址:http://www.cnblogs.com/iyangyuan/archive/2013/12/12/3471227.html) & ...
- 认识 Thymeleaf
- redis集群实战
一.说明 redis 3.0集群功能出来已经有一段时间了,目前最新稳定版是3.0.5,我了解到已经有很多互联网公司在生产环境使用,比如唯品会.美团等等,刚好公司有个新项目,预估的量单机redis无法满 ...
- 深入理解hello world
阅读目录 为什么所有东西都是从类开始的 为什么总是需要有一个“main”方法 HelloWorld的字节码 HelloWorld在JVM中是如何运行的 对于每个Java程序员来说,HelloWorld ...
- Light Probe
[Light Probe] Light Probes provide a way to capture and use information about light that is passing ...