vue 常用的 Echarts 示例(1)

文章比较了主煤流系统的手动启动时长与智能启动时长,展示了两种方式的数据对比图表。同时,详细介绍了前端开发的学习资源,包括零基础到进阶课程,以及前端工程师面临的挑战和学习策略。
摘要由CSDN通过智能技术生成

right: ‘2%’

},

series: [{

name: “主煤流系统手动启动时长”,

barWidth: 15,

type: ‘bar’,

data: [1,2,3,4,5,6],

itemStyle: {

normal: {

label: {

show: true, //开启显示

position: ‘insideLeft’, //在上方显示

offset: [-8, 0],

textStyle: { //数值样式

color: ‘#fff’,

fontSize: 10

}

},

color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{

offset: 0,

color: “#0069F5” // 0% 处的颜色

}, {

offset: 1,

color: “#35C3FF” // 100% 处的颜色

}], false)

}

},

}, {

name: “主煤流系统智能启动时长”,

barWidth: 15,

type: ‘bar’,

data: [2,3,4,5,6,7],

itemStyle: {

normal: {

label: {

show: true, //开启显示

position: ‘insideRight’, //在上方显示

offset: [8, 0],

textStyle: { //数值样式

color: ‘#fff’,

fontSize: 10

}

},

color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{

offset: 0,

color: “#03AC32” // 0% 处的颜色

}, {

offset: 1,

color: “#69EF00” // 100% 处的颜色

}], false)

}

},

}]

};

多条曲线图


在这里插入图片描述

option = {

color: [‘#1890FF’, ‘#FF7D00’],

tooltip: {},

legend: {

show: true,

top: 15,

right: 0,

align: ‘left’,

x: ‘center’,

y: ‘top’,

icon: ‘rect’,

itemHeight: 5,

itemWidth: 15,

data: [“智能配煤”,“非智能配煤”],

textStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

fontSize: 12

},

},

xAxis: {

axisTick: {

show: false

},

axisLine: {

lineStyle: {

color: ‘#0092D5’

}

},

axisLabel: {

color: ‘rgba(255, 255, 255, 0.8)’

},

data: [‘2020-01’,‘2020-02’,‘2020-03’,‘2020-04’,‘2020-05’,‘2020-06’]

},

yAxis: {

name: “(万元)”,

nameTextStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

align: ‘right’

},

splitLine: {

lineStyle: {

type: ‘dashed’,

color: ‘#0092D5’,

opacity: 0.3

}

},

axisLine: {

show: false,

},

axisLabel: {

color: ‘rgba(255, 255, 255, 0.8)’

},

},

grid: {

top: ‘25%’,

bottom: ‘10%’,

left: ‘10%’,

right: ‘2%’

},

series: [{

name: “智能配煤”,

barWidth: 15,

type: ‘line’,

smooth: true,

data: [1,2,3,4,5,6],

}, {

name: “非智能配煤”,

barWidth: 15,

type: ‘line’,

smooth: true,

data: [3,4,5,6,7,8],

}]

};

柱形图配折线图


在这里插入图片描述

option = {

title: {

text: ‘近一周全矿井产量’,

textAlign: ‘left’,

x: ‘center’,

y: ‘top’,

textStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

fontSize: 14

}

},

color: [‘#0d81f7’, ‘#0fb42c’, ‘#e97507’],

tooltip: {},

legend: {

show: true,

top: 3,

right: 0,

data: [“综采1”,“综采2”, “总计”],

textStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

fontSize: 12

},

itemWidth: 12,

itemHeight: 12

},

xAxis: {

axisTick: {

show: false

},

axisLine: {

lineStyle: {

color: ‘#0092D5’

}

},

axisLabel: {

color: ‘rgba(255, 255, 255, 0.8)’

},

data: [‘2020-01’,‘2020-02’,‘2020-03’,‘2020-04’,‘2020-05’,‘2020-06’]

},

yAxis: {

name: “(吨)”,

nameTextStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

align: ‘right’

},

splitLine: {

lineStyle: {

type: ‘dashed’,

color: ‘#0092D5’,

opacity: 0.3

}

},

axisLine: {

show: false,

},

axisLabel: {

color: ‘rgba(255, 255, 255, 0.8)’

},

},

grid: {

top: ‘20%’,

bottom: ‘10%’,

left: ‘10%’,

right: ‘2%’

},

series: [{

name: “综采1”,

barWidth: 15,

type: ‘bar’,

data: [1,2,3,4,5,6],

itemStyle: {

normal: {

label: {

show: true, //开启显示

position: ‘insideLeft’, //在上方显示

offset: [-8, 0],

textStyle: { //数值样式

color: ‘#fff’,

fontSize: 10

}

},

color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{

offset: 0,

color: “#0069F5” // 0% 处的颜色

}, {

offset: 1,

color: “#35C3FF” // 100% 处的颜色

}], false)

}

},

}, {

name: “综采2”,

barWidth: 15,

type: ‘bar’,

data: [3,4,5,6,7,8],

itemStyle: {

normal: {

label: {

show: true, //开启显示

position: ‘insideRight’, //在上方显示

offset: [8, 0],

textStyle: { //数值样式

color: ‘#fff’,

fontSize: 10

}

},

color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{

offset: 0,

color: “#03AC32” // 0% 处的颜色

}, {

offset: 1,

color: “#69EF00” // 100% 处的颜色

}], false)

}

},

}, {

name: “总计”,

barWidth: 15,

type: ‘line’,

color: ‘#f67a03’,

data: [8,9,10,11,12,13],

}]

};

柱形图堆积


在这里插入图片描述

option = {

color: [‘#acff02’, ‘#fac800’, ‘#ff7d00’, ‘#0fb42c’],

tooltip: {

trigger: ‘axis’,

axisPointer: { // Use axis to trigger tooltip

type: ‘shadow’ // ‘shadow’ as default; can also be ‘line’ or ‘shadow’

}

},

legend: {

show: true,

top: 15,

right: 0,

x: ‘center’,

y: ‘top’,

data: [“生产队1”,“生产队2”,“生产队3”, “总计”],

textStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

fontSize: 12

},

itemWidth: 12,

itemHeight: 12

},

xAxis: {

axisTick: {

show: false

},

axisLine: {

lineStyle: {

color: ‘#0092D5’

}

},

axisLabel: {

color: ‘rgba(255, 255, 255, 0.8)’

},

data: [‘2020-01’,‘2020-02’,‘2020-03’,‘2020-04’,‘2020-05’,‘2020-06’]

},

yAxis: {

name: “(吨)”,

nameTextStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

align: ‘right’

},

splitLine: {

lineStyle: {

type: ‘dashed’,

color: ‘#0092D5’,

opacity: 0.3

}

},

axisLine: {

show: false,

},

axisLabel: {

color: ‘rgba(255, 255, 255, 0.8)’

},

},

grid: {

top: ‘25%’,

bottom: ‘10%’,

left: ‘12%’,

right: ‘2%’

},

series: [{

name: “生产队1”,

barWidth: 15,

type: ‘bar’,

stack: ‘total’,

emphasis: {

focus: ‘series’

},

data: [1,2,3,4,5,6],

itemStyle: {

normal: {

label: {

show: true, //开启显示

position: ‘insideRight’, //在上方显示

offset: [-8, 0],

textStyle: { //数值样式

color: ‘#fff’,

fontSize: 10

}

},

}

},

},

{

name: “生产队2”,

barWidth: 15,

type: ‘bar’,

stack: ‘total’,

emphasis: {

focus: ‘series’

},

data:[2,3,4,5,6,7],

itemStyle: {

normal: {

label: {

show: true, //开启显示

position: ‘insideRight’, //在上方显示

offset: [-8, 0],

textStyle: { //数值样式

color: ‘#fff’,

fontSize: 10,

}

},

}

},

},

{

name: “生产队3”,

barWidth: 15,

type: ‘bar’,

stack: ‘total’,

emphasis: {

focus: ‘series’

},

data:[5,6,7,8,9,10],

itemStyle: {

normal: {

label: {

show: true, //开启显示

position: ‘insideRight’, //在上方显示

offset: [-8, 0],

textStyle: { //数值样式

color: ‘#fff’,

fontSize: 10

}

},

}

},

}, {

name: ‘总计’,

barWidth: 15,

type: ‘bar’,

data: [21,22,23,34,25,25],

itemStyle: {

normal: {

label: {

show: true, //开启显示

position: ‘insideLeft’, //在上方显示

offset: [8, 0],

textStyle: { //数值样式

color: ‘#fff’,

fontSize: 10

}

},

color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [{

offset: 0,

color: “#0069F5” // 0% 处的颜色

}, {

offset: 1,

color: “#35C3FF” // 100% 处的颜色

}], false)

}

},

}]

};

饼图


在这里插入图片描述

option = {

title: {

text: ‘各生产队工效’,

textAlign: ‘left’,

x: ‘center’,

y: ‘top’,

top: ‘7%’,

textStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

fontSize: 12

}

},

tooltip: {},

legend: {

orient: ‘vertical’,

top: ‘50%’,

left: ‘15%’,

textStyle: {

color: ‘rgba(255, 255, 255, 0.8)’,

fontSize: 12

},

itemWidth: 12,

itemHeight: 12

},

grid: {

top: ‘20%’,

bottom: ‘10%’,

left: ‘10%’,

right: ‘10%’

},

series: [{

name: ‘功效’,

type: ‘pie’,

radius: [15, 70],

center: [‘68%’, ‘60%’],

// roseType: ‘area’,

itemStyle: {

borderRadius: 2

},

label: {

position: ‘inside’,

formatter: ‘{c}吨/人天’,

fontWeight: 600,

color: ‘#fff’

},

data: [{

value:12,

name: “生产队1”

},{

value:34,

name: “生产队2”

},{

value:23,

name: “生产队3”

}]

}]

};

进度环形图


在这里插入图片描述

自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。

深知大多数前端工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!

因此收集整理了一份《2024年Web前端开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。

img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上前端开发知识点,真正体系化!

由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!

如果你觉得这些内容对你有帮助,可以扫码获取!!(备注:前端)

最后

一个好的心态和一个坚持的心很重要,很多冲着高薪的人想学习前端,但是能学到最后的没有几个,遇到困难就放弃了,这种人到处都是,就是因为有的东西难,所以他的回报才很大,我们评判一个前端开发者是什么水平,就是他解决问题的能力有多强。

分享一些简单的前端面试题以及学习路线给大家,狂戳这里即可获取

环形图


在这里插入图片描述

自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。

深知大多数前端工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!

因此收集整理了一份《2024年Web前端开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。

[外链图片转存中…(img-pc9mmvDT-1712507946963)]

[外链图片转存中…(img-CPYOiofH-1712507946963)]

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上前端开发知识点,真正体系化!

[外链图片转存中…(img-BDDe4Ooy-1712507946963)]

由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!

如果你觉得这些内容对你有帮助,可以扫码获取!!(备注:前端)

最后

一个好的心态和一个坚持的心很重要,很多冲着高薪的人想学习前端,但是能学到最后的没有几个,遇到困难就放弃了,这种人到处都是,就是因为有的东西难,所以他的回报才很大,我们评判一个前端开发者是什么水平,就是他解决问题的能力有多强。

分享一些简单的前端面试题以及学习路线给大家,狂戳这里即可获取

[外链图片转存中…(img-cRIxHBG1-1712507946964)]

  • 7
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值