echarts 背景颜色透明,文章整理上传于2017年10月9日
backgroundColor:'rgba(128, 128, 128, 0.1)' //rgba设置透明度0.1
}
backgroundColor:'' //设置无背景色
}
描述:
使用'dark'系列主题初始化控件,控件会自带黑色背景色,与页面整体风格不符合,所以需要将其背景颜色设置为透明.官网文档:
http://echarts.baidu.com/option.html#backgroundColor
方法一:
var option={backgroundColor:'rgba(128, 128, 128, 0.1)' //rgba设置透明度0.1
}
方法二:
var option={backgroundColor:'' //设置无背景色
}