Toggle navigation
2017年阅读量统计 手机浏览
By
j***g
2017-12-19 06:21:05
脚本
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
图表已生成
整理代码
刷新
代码
var yAxisdata = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']; var data = [3, 4, 0, 0, 6, 4, 3, 0, 4, 6, 6, 4]; //马卡龙配色 var colorList = ['#2ec7c9', '#b6a2de', '#5ab1ef', '#ffb980', '#d87a80', '#8d98b3', '#e5cf0d', '#97b552', '#95706d', '#dc69aa', '#07a2a4', '#9a7fd1', '#588dd5', '#f5994e', '#c05050', ]; option = { title : { text: '2017年阅读量统计', subtext: '每月读完的数量,{a|平均每月读4.4本},相当于每周一本\n3月、4月工作原因没读;8月都在读水浒。', textStyle:{ fontSize:30 }, subtextStyle:{ fontSize:22, rich:{ a: { color: 'red', fontWeight:'bold', fontSize:25, }, } }, }, tooltip : { trigger: 'axis' }, legend: { data:['蒸发量'] }, grid:{ top:'90', }, toolbox: { show : true, feature : { mark : {show: true}, dataView : {show: true, readOnly: false}, magicType : {show: true, type: ['line', 'bar']}, restore : {show: true}, saveAsImage : {show: true} } }, calculable : true, yAxis : [ { type : 'category', data :yAxisdata, axisLabel : { fontSize:30, } } ], xAxis : [ { type : 'value' } ], series : [ { name:'阅读量', type:'bar', data:data, itemStyle: { normal: { color: function(params) { // build a color map as your need. return colorList[params.dataIndex] }, shadowBlur:10, shadowColor:'#aaa', shadowOffsetX:5, shadowOffsetY:5, label: { fontSize:30, show: true, position: 'insideLeft', formatter: '{c}本' } } } } ] };