当前位置:网站首页>Double solid histogram / double y-axis
Double solid histogram / double y-axis
2022-06-30 20:57:00 【a ٩ (๑ ʊ Begin with ʃʃʃ bustling ʊ ๑) ۶ a】
methods: {
talentsEcharts() {
// Based on the prepared dom, initialization echarts example
const chart = this.$echarts.init(this.$refs.lineEcharts);
let option = {
tooltip: {
backgroundColor: "none", // The background color ( Default color at this time )
borderColor: "#099697",
textStyle: {
color: "#fff", align: "left" },
trigger: "axis",
axisPointer: {
crossStyle: {
color: "#fff",
},
},
},
// The position of the graph in the element
grid: {
top: "10%",
bottom: "0%",
left: "0%",
right: "0%",
containLabel: true,
height: 155,
},
xAxis: [
{
axisTick: {
show: false, // Axis scale line
},
type: "category",
data: ["2018", "2019", "2020", "2021"],
axisLabel: {
textStyle: {
color: "#fff",
},
},
axisPointer: {
type: "shadow",
},
},
],
yAxis: [
// left y Axis
{
type: "value",
splitLine: {
show: false,
lineStyle: {
width: 0.3,
},
},
axisLine: {
show: false,
},
axisTick: {
show: false,
},
axisLabel: {
interval: 0,
color: "#fff",
fontSize: 12,
formatter: "{value} Billion ",
},
splitArea: {
show: false,
},
},
// On the right side y Axis
{
type: "value",
// Internal horizontal line
splitLine: {
show: true,
lineStyle: {
width: 0.3,
},
},
axisLine: {
show: false,
},
axisTick: {
show: false,
},
// Company
axisLabel: {
interval: 0,
color: "#fff",
fontSize: 12,
formatter: "{value} home ",
},
splitArea: {
show: false,
},
},
],
series: [
// The first pillar
{
// Column bottom disc
name: "",
type: "pictorialBar",
yAxisIndex: 0,
symbolSize: [15, 11], // Adjust the section shape
// Adjust the position of the section
// You need to adjust the configuration when adding or deleting Columns
symbolOffset: [-7.5, 5],
z: 12,
itemStyle: {
normal: {
color: "#25A0D0",
},
},
tooltip: {
show: false,
},
data: ["3719.40", "2288.29", "1852.65", "1425.12"],
},
// Cylinder
{
name: "",
type: "bar",
yAxisIndex: 0,
barWidth: 15,
barGap: "0%",
itemStyle: {
normal: {
color: "#25A0D0",
// With transparency, there will be a three-dimensional feeling and a contrast between the upper and lower circular sections
opacity: 0.7,
},
},
tooltip: {
valueFormatter: function (value) {
return value + " Billion ";
},
},
data: ["1425.12", "1852.65", "2288.29", "3719.40"],
},
// Column top disc
{
name: "",
type: "pictorialBar",
yAxisIndex: 0,
symbolSize: [15, 11], // Adjust the section shape
symbolOffset: [-7.5, -5],
z: 12,
symbolPosition: "end",
itemStyle: {
normal: {
color: "#25A0D0",
},
},
tooltip: {
show: false,
},
data: ["1425.12", "1852.65", "2288.29", "3719.40"],
},
// Second column
{
// Column bottom disc
name: "",
type: "pictorialBar",
yAxisIndex: 1,
symbolSize: [15, 11], // Adjust the section shape
symbolOffset: [7.5, 4],
z: 12,
itemStyle: {
normal: {
color: "#18E6BA",
},
},
tooltip: {
show: false,
},
data: ["2903", "4133", "5085", "6221"],
},
// Right column
{
name: "",
type: "bar",
yAxisIndex: 1,
barWidth: 15,
barGap: "0%",
itemStyle: {
normal: {
color: "#18E6BA",
opacity: 0.7,
},
},
tooltip: {
valueFormatter: function (value) {
return value + " home ";
},
},
data: ["2903", "4133", "5085", "6221"],
},
// Column top disc
{
name: "",
type: "pictorialBar",
yAxisIndex: 1,
symbolSize: [15, 11],
symbolOffset: [7.5, -4],
z: 12,
symbolPosition: "end",
itemStyle: {
normal: {
color: "#18E6BA",
},
},
tooltip: {
show: false,
},
data: ["2903", "4133", "5085", "6221"],
},
],
};
chart.setOption(option);
},
},
边栏推荐
- Label Contrastive Coding based Graph Neural Network for Graph Classification
- Binary search tree (1) - concept and C language implementation
- PHP require/include 区别
- Basic concepts of tree
- 《大厂面试》之JVM篇21问与答
- 减少嵌入式软件调试时间的三个技巧
- vncserver: Failed command ‘/etc/X11/Xvnc-session‘: 256!
- MFC界面库BCGControlBar v33.0 - 桌面警报窗口、网格控件升级等
- Study on lumiprobe modified triphosphate biotin-11-utp
- A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities
猜你喜欢
PHP obtains opcode and C source code
Lumiprobe染料 NHS 酯丨BDP FL NHS 酯研究
个人开发的渗透测试工具Satania
PHP require/include 区别
Lumiprobe biotin phosphimide (hydroxyproline) instructions
A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities
AVL平衡二叉树(一) - 概念与C语言实现
企业保护 API 安全迫在眉睫
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
Software engineering UML drawing
随机推荐
Scene 299
转:用实际行动赢得别人追随
PHP require/include differences
uniapp-路由uni-simple-router
Personal developed penetration testing tool Satania
Deflection lock / light lock / heavy lock lock is healthier. How to complete locking and unlocking
Peking University ACM problems 1002:487-3279
jfinal中如何使用过滤器监控Druid监听SQL执行?
Testing principle and precautions of biovendor rage ELISA Kit
Lumiprobe protein quantitation - qudye Protein Quantitation Kit
How do I get the largest K massive data
uniapp-第三方网络请求
利用日志服务器输出各种apache的日志的TOPN
数字货币:影响深远的创新
Huffman tree (I) basic concept and C language implementation
三个火枪手
PHP require/include 区别
Study on PEGylation of lumiprobe and PEG linker - iodine-peg3-acid
[原创]用代码dialog 高度 宽度无法屏幕屏幕问题
ICLR'22 Spotlight | 怎样度量神经网络权重中的信息量?