当前位置:网站首页>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);
},
},
边栏推荐
- 数据库 OLAP、OLTP是什么?相同和不同?适用场景
- Label Contrastive Coding based Graph Neural Network for Graph Classification
- go搭建服务器基础
- A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities
- B_QuRT_User_Guide(32)
- 第299场
- Summary of personal work of 21 groups in the first week of summer training
- uniapp怎么上传二进制图片
- Playwright - scroll bar operation
- No "history of blood and tears" in home office | community essay solicitation
猜你喜欢
随机推荐
第81场双周赛
有趣插件汇总
Peking University ACM problems 1003:hangover
centos——开启/关闭oracle
Lumiprobe无铜点击化学解决方案
判断js对象是否为空的方式
AVL balanced binary tree (I) - concept and C language implementation
Huffman tree (I) basic concept and C language implementation
C file pointer
Peking University ACM problems 1006:biorhythms
Label Contrastive Coding based Graph Neural Network for Graph Classification
[1175. prime number arrangement]
qiao-npms:搜索npm包
A complete collection of vulnerability scanning tools. Mom doesn't have to worry that I won't find any more vulnerabilities
元宇宙可能成为互联网发展的新方向
uniapp-第三方网络请求
我想知道股票开户要认识谁?另外,手机开户安全么?
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
学习总结
亚马逊在阿拉伯联合酋长国限制LGBTQ相关的搜索和产品销售









