当前位置:网站首页>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);
},
},
边栏推荐
猜你喜欢
随机推荐
AVL平衡二叉树(一) - 概念与C语言实现
uniapp-富文本编辑器
防范未授权访问攻击的十项安全措施
uniapp怎么上传二进制图片
19.04 distributor
偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
毕业设计
请指教在线开户需要什么银行卡?另外想问,现在在线开户安全么?
Summary of personal work of 21 groups in the first week of summer training
两个skyline
开发技术-使用easyexcel导入文件(简单示例)
k个一组反转链表
Study on lumiprobe dye NHS ester BDP FL NHS ester
Flinksql两个kafka 流可以进行join么?
[original] unable to use the code dialog height and width to solve the screen problem
B_QuRT_User_Guide(34)
【微服务~Nacos】Nacos之配置中心
docker安装mysql
报错:Internal error XFS_WANT_CORRUPTED_GOTO at line 1635 of file fs/xfs/libxfs/xfs_alloc.c.
vncserver: Failed command ‘/etc/X11/Xvnc-session‘: 256!









