html浅色背景,深色背景和浅色标签

深色背景和浅色标签

.bt{

width: 990px;

height: 600px;

}

var myChart=echarts.init(document.getElementById("main"));

//指定图表的配置和数据

var option={

backgroundColor: '#2c343c',

textStyle: {

color: 'rgba(255, 255, 255, 0.3)'

},

title:{

text:'某站点用户访问来源',

subtext:"阿里波特的魔法",

color: '#fff',

x:'center'

},

tooltip:{

trigger:"item",

formatter:"{a}

{b}:{c}({d}%)"

},

legend:{

orient:'vertical',

left:"left",

// color:"white",

// color: 'rgba(255, 255, 255, 0.3)',

data:["直接访问","邮件营销","联盟广告","视频广告","搜索引擎"]

},

series:[

{

name:"访问来源",

// roseType: 'angle',

type:"pie",

radius:"55%",

center:["50%","60%"],

//更改阴影,透明度,颜色,边框颜色,边框宽度

itemStyle: {

//normal选项是正常展示下的样式

// normal: {

// // 阴影的大小

// shadowBlur: 200,

// // 阴影水平方向上的偏移

// shadowOffsetX: 0,

// // 阴影垂直方向上的偏移

// shadowOffsetY: 0,

// // 阴影颜色

// shadowColor: 'rgba(0, 0, 0, 0.5)'

// }

//鼠标hover的时候的高亮样式

emphasis:{

shadowBlur:200,

shadowColor: 'rgba(0, 0, 0, 0.5)'

}

},

label: {

normal: {

textStyle: {

color: 'rgba(255, 255, 255, 0.3)'

}

}

},

labelLine: {

normal: {

lineStyle: {

color: 'rgba(255, 255, 255, 0.3)'

}

}

},

itemStyle: {

normal: {

shadowBlur: 200,

shadowColor: 'rgba(0, 0, 0, 0.5)'

}

},

data:[

{value:"335",name:"直接访问"},

{value:310, name:'邮件营销'},

{value:234, name:'联盟广告'},

{value:135, name:'视频广告'},

{value:1548, name:'搜索引擎'}

]

}

]

//绑定图表

}

myChart.setOption(option);

效果图

28a238c9ad18?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

image.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值