Toggle navigation
计算量对比
By
依***缘
2020-02-22 13:04:16
脚本
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 = { color: [ "#c23531", "#3b8c13", "#61a0a8", "#d48265", "#91c7ae", "#749f83", "#ca8622", "#bda29a", "#6e7074", "#546570", "#c4ccd3" ], title: { text: '渲染耗时对比', x: 'center', top: "25", textStyle: { color: '#333', fontSize: 16 } }, xAxis: { data: ['5*5*5', '10*10*10', '15*15*15', '20*20*20'], name: "指标数量", nameTextStyle: { color: '#333', fontSize: '16' }, position: 'bottom', nameLocation: 'end' }, legend: { data: ['原方案', '优化后'], textStyle: { fontSize: '14', color: '#333' } }, yAxis: [{ type: 'log', name: "渲染耗时(ms)", nameTextStyle: { color: '#333', fontSize: '16' }, minInterval: 20, //设置左侧Y轴最小刻度 splitLine: { lineStyle: { type: 'dashed', color: 'rgba(135,140,147,0.8)' } }, //设置横线样式 axisLabel: { textStyle: { fontSize: '14', color: '#333' } }, }], series: [{ name: '原方案', type: 'line', title: '无worker', data: [26101, 212872], itemStyle: { normal: { label: { show: true, position: 'bottom', offset: [30, -10], textStyle: { color: '#c23531' } } }, }, }, { type: 'line', title: '按需渲染', name: '优化后', data: [171, 224, 670, 1092], itemStyle: { normal: { label: { show: true, position: 'top', offset: [-30, 10], textStyle: { color: '#2f4554' } } }, }, }] };