Toggle navigation
四个图表 展示
By
谢***Q
2019-12-09 10:02:09
脚本
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 itemStyle1= { normal: { color:'#8dfeee', lineStyle: { color: "#8dfeee", width:1 }, areaStyle: { color: 'rgba(174,254,251,0.8)' } } } var itemStyle2= { normal: { color:'#739dec', lineStyle: { color: "#739dec", width:1 }, areaStyle: { color: 'rgba(115,157,236,0.5)' } } } var option = { tooltip : { trigger: 'axis', formatter: function (params) { console.log(params) var formatterString /*$.each(params, function(i, data) { if( data.seriesIndex==0 || data.seriesIndex==1){ formatterString='TCP一二步握手成功率' formatterString += data.seriesName+':'+data.value } })*/ for(var i=0;i++;i<7){ formatterString='TCP一二步握手成功率' formatterString += params[i].seriesName+':'+params[i].value } return formatterString } // formatter: 'TCP一二步握手成功率
{a0}: {c0}
{a1}: {c1}' + // '
TCP客户端时延
{a2}: {c2}
{a3}: {c3}' + // '
TCP重传率
{a4}: {c4}
{a5}: {c5}' + // '
IPTV卡顿时长占比
{a6}: {c6}
{a7}: {c7}', }, axisPointer: { link: { xAxisIndex: 'all' } }, color:['#aefefb','#739dec'], grid: [{ left: '2%', // right: '40%', top:'10%', bottom: '0%', height: '40%', width: '46%', containLabel: true },{ left: '51%', right: '0%', top:'10%', bottom: '0%', height: '40%', width: '46%', containLabel: true },{ left: '2%', // right: '40%', top:'59%', bottom: '0%', height: '40%', width: '46%', containLabel: true },{ left: '51%', right: '0%', top:'59%', bottom: '0%', height: '40%', width: '46%', containLabel: true }], xAxis:[{ type: 'category', boundaryGap: false, data: ['0', '2', '4', '6', '8', '10', '12'], axisLine: { show: false, lineStyle: { color: '#6A6A6A' } }, axisTick: { show: false }, },{ gridIndex: 1, type: 'category', boundaryGap: false, data: ['0', '2', '4', '6', '8', '10', '12'], axisLine: { show: false, lineStyle: { color: '#6A6A6A' } }, axisTick: { show: false }, },{ gridIndex: 2, type: 'category', boundaryGap: false, data: ['0', '2', '4', '6', '8', '10', '12'], axisLine: { show: false, lineStyle: { color: '#6A6A6A' } }, axisTick: { show: false }, },{ gridIndex: 3, type: 'category', boundaryGap: false, data: ['0', '2', '4', '6', '8', '10', '12'], axisLine: { show: false, lineStyle: { color: '#6A6A6A' } }, axisTick: { show: false }, },], yAxis: [{ name : 'TCP一二步握手成功率', nameTextStyle :{ align:'left', color:'#333', padding: [0, 0, -10, 0] }, type: 'value', axisLine: { show: false, lineStyle: { color: '#6A6A6A' } }, axisTick: { show: false }, },{ name : 'TCP客户端时延', nameTextStyle :{ align:'left', color:'#333', padding: [0, 0, -10, 0] }, gridIndex: 1, type: 'value', axisLine: { show: false, lineStyle: { color: '#6A6A6A' } }, axisTick: { show: false }, },{ gridIndex: 2, name : 'TCP重传率', nameTextStyle :{ align:'left', color:'#333', padding: [0, 0, -10, 0] }, type: 'value', axisLine: { show: false, lineStyle: { color: '#6A6A6A' } }, axisTick: { show: false }, },{ gridIndex: 3, name : 'IPTV卡顿时长占比', nameTextStyle :{ align:'left', color:'#333', padding: [0, 0, -10, 0] }, type: 'value', axisLine: { show: false, lineStyle: { color: '#6A6A6A' } }, axisTick: { show: false }, }], series: [{ name:'全网', data: [15, 27, 134, 125, 57, 15, 10], markPoint: { data: [{ symbol: 'circle', symbolSize: 12, coord: ["2", 47] }] }, type: 'line', areaStyle: { normal: {} }, itemStyle:itemStyle1, },{ name:'用户群', data: [10, 30, 10, 30, 35, 58, 30], markPoint: { data: [{ symbol: 'circle', symbolSize: 12, coord: ["2", 30] }] }, type: 'line', areaStyle: { normal: {} }, itemStyle: itemStyle2, },{ name:'全网', data: [35, 47, 34, 25, 57, 45, 40], markPoint: { data: [{ symbol: 'circle', symbolSize: 12, coord: ["2", 47] }] }, type: 'line', xAxisIndex: 1, yAxisIndex: 1, areaStyle: { normal: {} }, itemStyle:itemStyle1, },{ name:'用户群', data: [20, 30, 40, 30, 35, 58, 30], markPoint: { data: [{ symbol: 'circle', symbolSize: 12, coord: ["2", 30] }] }, type: 'line', xAxisIndex: 1, yAxisIndex: 1, areaStyle: { normal: {} }, itemStyle: itemStyle2, },{ name:'全网', data: [35, 47, 34, 25, 57, 45, 40], markPoint: { data: [{ symbol: 'circle', symbolSize: 12, coord: ["2", 47] }] }, type: 'line', xAxisIndex: 2, yAxisIndex: 2, areaStyle: { normal: {} }, itemStyle:itemStyle1, },{ name:'用户群', data: [20, 30, 40, 30, 35, 58, 30], markPoint: { data: [{ symbol: 'circle', symbolSize: 12, coord: ["2", 30] }] }, type: 'line', xAxisIndex: 2, yAxisIndex: 2, areaStyle: { normal: {} }, itemStyle: itemStyle2, },{ name:'全网', data: [35, 47, 34, 25, 57, 45, 40], markPoint: { data: [{ symbol: 'circle', symbolSize: 12, coord: ["2", 47] }] }, type: 'line', xAxisIndex: 3, yAxisIndex: 3, areaStyle: { normal: {} }, itemStyle:itemStyle1, },{ name:'用户群', data: [20, 30, 40, 30, 35, 58, 30], markPoint: { data: [{ symbol: 'circle', symbolSize: 12, coord: ["2", 30] }] }, type: 'line', xAxisIndex: 3, yAxisIndex: 3, areaStyle: { normal: {} }, itemStyle: itemStyle2, }] };