Toggle navigation
图表下面的X轴 一周 日期要做成实时 周期,并且循环播放,怎么做? 还有下面的series: {data:[ ]},怎么设置动态获取7个参数后与X轴标签联动。
By
185*****273
2017-04-16 13:48:34
脚本
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 mydate = new Date(2017, 4, 16); var number = mydate.getDay(); //var date = weekday[number]; var weekday = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"]; option = { backgroundColor: '#91c7ae', title: { text: '周报告', textStyle: { fontSize: 15, }, left: 20, top: 10, }, legend: { data: ['进度'], top: 10, itemWidth: 35, }, xAxis: { data: weekday, axisLine: { lineStyle: { color: '#FBB7F6', }, }, axisTick: { show: false }, axisLabel: { textStyle: { color: '#5C5C5C', }, }, splitLine: { show: true, lineStyle: { color: '#FBB7F6', }, }, splitArea: { areaStyle: { color: ['rgba(200,200,200,0.3)', 'rgba(250,250,250,0.3)'], shadowBlur: 10, shadowColor: '#C50F5F', shadowOffsetX: 5, shadowOffsetY: 5, }, }, boundaryGap: false, }, yAxis: { name: '单位 : 节', nameTextStyle: { color: '#ECECEC', }, nameGap: 8, axisLine: { lineStyle: { color: '#FBB7F6', }, }, axisTick: false, axisLabel: { textStyle: { color: '#5C5C5C', }, }, splitLine: { lineStyle: { color: '#FBB7F6', }, }, splitArea: { show: true, areaStyle: { color: ['rgba(250,250,250,0.3)', 'rgba(200,200,200,0.3)'], }, }, }, tooltip: { formatter: '{a}
{b} : {c}' }, series: [{ name: '进度', type: 'line', data: [5, 8, 3, 5, 13, 0, 7], symbol: 'diamond', symbolSize: 10, itemStyle: { normal: { color: '#E3F774', }, }, lineStyle: { normal: { color: '#E3F774', }, }, areaStyle: { normal: { color: '#1624C2', opacity: 0.3, }, }, }], };