echarts柱形图x轴y轴互换_Echarts Y轴底纹改为虚线与设置柱状图为圆角

1、Echarts Y轴底纹改为虚线:

yAxis: {

splitLine :{ //网格线

lineStyle:{

type:'dashed' //设置网格线类型 dotted:虚线 solid:实线

},

show:true //隐藏或显示

}

}

840df657ee83

image.png

原文作者:https://blog.csdn.net/miss_cjl/article/details/88567281

2、Echarts 设置柱状图为圆角

series: [

{

name: "防控措施有待完善数",

type: "bar",

data: [1823, 2348, 2904, 1040, 1314, 2302],

//设置柱状图大小

barWidth: 30,

//柱形图圆角,鼠标移上去效果,如果只是一个数字则说明四个参数全部设置为那么多

itemStyle: {

emphasis: {

barBorderRadius: 20,//角度大小

},

normal: {

//柱形图圆角,初始化效果

barBorderRadius: [6, 6, 6, 6],

},

},

},

840df657ee83

image.png

3、Echarts 去掉刻度线

xAxis: {

type: "category",

data: ["北京", "上海", "浙江", "江西", "江苏", "广东"],

//去掉刻度线

axisTick: {

show: false

}

},

840df657ee83

image.png

3、Echarts 男丁格尔玫瑰图身上加文字(饼图柱状图应该也行)

840df657ee83

image.png

label: {

show: true,

position: "inside",

formatter: "11万元",

textStyle: {

fontWeight: "bold",

fontFamily: "Microsoft YaHei",

color: "#FAFAFA",

fontSize: 8,

},

840df657ee83

image.png

3、Echarts 去掉Y轴的坐标线

//去掉Y轴坐标线

axisLine: {

show: false,

},

840df657ee83

image.png

840df657ee83

image.png

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值