Toggle navigation
学习测试
By
w***3
2020-10-24 05:37:13
脚本
16
21
作品使用的第三方脚本
数据管理
上传数据
支持小于 5M 任意格式(csv, xlsx, json, xml, ...)的数据文件
上传后可以通过生成的文件链接异步获取托管的数据。
历史数据
0 条
无历史数据
代码修改记录
信息提示
保存作品
对当前截图不满意?你还可以
上传本地截图
重新截图
作品名称
作品描述
标签
geo
grid
legend
markLine
markPoint
bar
effectScatter
line
lines
map
timeline
title
toolbox
tooltip
visualMap
作品默认版本
最新
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
20:11:45
图表已生成
整理代码
刷新
代码
option = { title: { text: '保单继续率', //这个是整体图标的标题 textStyle: { color: 'red', //文字颜色 fontSize: 30 //文字大小 }, top: "1%", //距离上面百分比 left: 'center' //标题位子 left center right }, backgroundColor: 'rgba(255,250,221,0.5)', //背景颜色 xAxis: { data: ['银行保险', '个人营销', '电销', '网销'] }, grid: { //可以控制上下左右边距 left: '10%', right: '10%', top: '10%', bottom: "10%", containLabel: true, //是否包含内容 }, legend: { //图例组件,颜色和名字 right: 10, top: '15%', itemGap: 16, itemWidth: 18, itemHeight: 10, data: [{ name: '计划生产重量', } ], textStyle: { color: '#fff', fontStyle: 'normal', fontFamily: '微软雅黑', fontSize: 16, } }, tooltip: { //提示框组件 鼠标落在上面显示的提示 trigger: 'axis', formatter: '{b}
', //这里可以接收html代码哦 axisPointer: { type: 'shadow', label: { backgroundColor: 'red' } }, textStyle: { color: '#fff', fontStyle: 'normal', fontFamily: '微软雅黑', fontSize: 12, } }, yAxis: {}, series: [{ type: 'bar', data: [220, 182, 191, 234, 290, 330, 310] }] };