Toggle navigation
Log View
By
wo...e@sina.com
2017-12-11 06:46:51
脚本
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 = { baseOption: { backgroundColor: '#000', title: { text: 'Log View', textStyle: { color: '#fff', fontSize: 16, }, }, legend: { data: ['GR', 'Resistivity'], top: 4, right: '20%', textStyle: { color: '#fff', }, }, tooltip: { show: true, trigger: 'axis', // formatter: '{b}
{a}: {c}人', axisPointer: { type: 'shadow', } }, toolbox: { right: 20, feature: { saveAsImage: {}, restore: {}, dataView: {}, dataZoom: {}, magicType: { type: ['line', 'bar'] }, // brush: {}, } }, grid: [{ show: false, left: '4%', top: 60, bottom: 60, containLabel: true, width: '46%', }, { show: false, left: '50.5%', top: 80, bottom: 60, width: '0%', }, { show: false, right: '4%', top: 60, bottom: 60, containLabel: true, width: '46%', }, ], xAxis: [{ type: 'value', inverse: true, axisLine: { show: false, }, axisTick: { show: false, }, position: 'top', axisLabel: { show: true, textStyle: { color: '#B2B2B2', fontSize: 12, }, }, splitLine: { show: true, lineStyle: { color: '#1F2022', width: 1, type: 'solid', }, }, }, { gridIndex: 1, show: false, }, { gridIndex: 2, type: 'value', axisLine: { show: false, }, axisTick: { show: false, }, position: 'top', axisLabel: { show: true, textStyle: { color: '#B2B2B2', fontSize: 12, }, }, splitLine: { show: true, lineStyle: { color: '#1F2022', width: 1, type: 'solid', }, }, }, ], yAxis: [{ type: 'category', inverse: true, position: 'right', axisLine: { show: false }, axisTick: { show: false }, axisLabel: { show: false, margin: 8, textStyle: { color: '#9D9EA0', fontSize: 12, }, }, data: depth, }, { gridIndex: 1, type: 'category', inverse: true, position: 'left', axisLine: { show: false }, axisTick: { show: false }, axisLabel: { show: true, textStyle: { color: '#9D9EA0', fontSize: 12, }, }, data: depth.map(function(value) { return { value: value, textStyle: { align: 'center', } } }), }, { gridIndex: 2, type: 'category', inverse: true, position: 'left', axisLine: { show: false }, axisTick: { show: false }, axisLabel: { show: false, textStyle: { color: '#9D9EA0', fontSize: 12, }, }, data: depth, }, ], dataZoom: [{ type: 'inside', yAxisIndex: [0,1,2], }, { id: 'dataZoomX1', type: 'slider', xAxisIndex: [0], }, { id: 'dataZoomX2', type: 'slider', xAxisIndex: [2], }, { id: 'dataZoomY', type: 'slider', yAxisIndex: [0, 1, 2], } ], series: [{ name: 'GR', type: 'line', barGap: 20, barWidth: 20, label: { normal: { show: false, }, emphasis: { show: true, position: 'left', offset: [0, 0], textStyle: { color: '#fff', fontSize: 14, }, }, }, itemStyle: { normal: { color: '#659F83', }, emphasis: { color: '#08C7AE', }, }, data: GR, }, { name: 'Resistivity', type: 'line', barGap: 20, barWidth: 20, xAxisIndex: 2, yAxisIndex: 2, label: { normal: { show: false, }, emphasis: { show: true, position: 'right', offset: [0, 0], textStyle: { color: '#fff', fontSize: 14, }, }, }, itemStyle: { normal: { color: '#F68989', }, emphasis: { color: '#F94646', }, }, data: Resistivity, } ], }, options: [], };