黑底: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的更多相关文章

  1. echars 柱状图 堆叠状态 --》二次封装

    <template> <!-- 柱状图 堆叠 1. 调用页面引入 import EcharsColumnStack from '@/components/echarsColumnSt ...

  2. Python交互图表可视化Bokeh:5 柱状图| 堆叠图| 直方图

    柱状图/堆叠图/直方图 ① 单系列柱状图② 多系列柱状图③ 堆叠图④ 直方图 1.单系列柱状图 import numpy as np import pandas as pd import matplo ...

  3. PHP统计二维数组个数

    count($arr) $arr = [ ['id'=>1,'name'=>'Tom'], ['id'=>2,'name'=>'Sun'], ['id'=>3,'name ...

  4. 线上 S1 故障是什么, 线上 S1 故障, 运维故障分级, 运维, 故障分级, P1 级别故障, 故障, P1 , S1

    线上 S1 故障是什么 线上 S1 故障, 运维故障分级, 运维, 故障分级, P1 级别故障, 故障, P1 , S1 故障复盘 https://time.geekbang.org/column/a ...

  5. echarts 堆叠柱状图 + 渐变柱状图

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  6. 06. Matplotlib 2 |折线图| 柱状图| 堆叠图| 面积图| 填图| 饼图| 直方图| 散点图| 极坐标| 图箱型图

    1.基本图表绘制 plt.plot() 图表类别:线形图.柱状图.密度图,以横纵坐标两个维度为主同时可延展出多种其他图表样式 plt.plot(kind='line', ax=None, figsiz ...

  7. pyhton matplotlib可视化图像基础(二维函数图、柱状图、饼图、直方图以及折线图)

    //2019.07.22pyhton中matplotlib模块的应用pyhton中matplotlib是可视化图像库的第三方库,它可以实现图像的可视化,输出不同形式的图形1.可视化图形的输出和展示需要 ...

  8. 前端数据统计用做Bootstrap的一些柱状图、饼状图和折线图案例

    Bootstrap,来自 Twitter,是目前最受欢迎的前端框架.Bootstrap 是基于 HTML.CSS.JAVASCRIPT 的,它简洁灵活,使得 Web 开发更加快捷. Bootstrap ...

  9. 使用ECharts报表统计公司考勤加班,大家加班多吗?

    最近个项目已经连续加班1个月多,因为公司经常有在外面客户现场或出差的情况,人事每个月初会把上个月的份考勤打卡记录全部发出来,让我们对自己的考勤,突然想到可根据大家打卡时间记录统计每天工作时间,看大家是 ...

随机推荐

  1. iOS app bundle id

    每个app的bundle id是唯一的,不同开发者账号不能申请相同的bundle id,例如开发者账号B想用开发者A的bundle id,只能是开发者A将这个bundle id先删除,B才可以注册,否 ...

  2. 使用CLR Function代替T-SQL函数,优化检索效率

    前言: 在使用存储过程查询数据中,T-SQL字符串拆分函数效率低下,这个时候我们可以采用CLR Function代替T-SQL函数,使用DLL执行字符串分解过程,并返回值到SQL中.测试复杂运行的速度 ...

  3. DATASNAP远程方法返回TSTREAM正解(转咏南兄)

    DATASNAP远程方法返回TSTREAM正解 DATASNAP远程方法返回TSTREAM,如果数据大小超过32K是会报错的.许多DELPHIER栽在这个上头,甚至开始怀疑TSTREAM返回数据的可行 ...

  4. LeetCode OJ 93. Restore IP Addresses

    题目 Given a string containing only digits, restore it by returning all possible valid IP address comb ...

  5. [Nginx]实战Nginx:Nginx的一些介绍

    ------------------------------------------------------------------------------------------------ 首先列 ...

  6. Spring Data MongDB空间索引(判断一个点Point是否在一个区域Polygon内)

    这里要连接MongoDB数据库,在配置文件里:spring.data.mongodb.uri = mongodb://root:root@localhost:27017/happy 两个root分别是 ...

  7. js高级-变量内存分析

    var  a = 9, b, c={age:9}, d; b = a; b = 19; console.log(a) console.log(b) d = c; d.age = 22; console ...

  8. Makefile编写参考

    http://www.ruanyifeng.com/blog/2015/02/make.html

  9. js中将类数组转换为数组的几种方法

    1.slice方法 最经典的方法,使用Array的slice方法,此方法如果不传参数的话会返回原数组的一个拷贝,因此可以用此方法转换类数组到数组: // 创建一个类数组对象 var alo = {0: ...

  10. vue 高级属性父组件provide向子组件发送数据,子组件通过inject接收数据

    以前父组件向子组件中传值是通过props传值,子组件不能更改父组件中的值,但是可以通过从父组件中获取的值定义给自己的data值,这里父组件可以通过provide向子组件传递自己组件中的data值,子组 ...