echarts
echarts copied to clipboard
使用log作为Y轴的类型时,刻度线无法按需求进行显示。
One-line summary [问题简述]
使用log作为Y轴的类型时,需要使刻度线在1E-12、1E-11一直到1E-1都有显示,但是现在无论如何配置,刻度线只在1E-10有显示,请问应该如何配置?
Version & Environment [版本及环境]
- ECharts version [ECharts 版本]:V4.04
- Browser version [浏览器类型和版本]:Google Chrome 65.0.3325.181
- OS Version [操作系统类型和版本]:Windows 10
Expected behaviour [期望结果]
能够给予正确配置的帮助。
ECharts option [ECharts配置项]
option = {
title: {
text: '真空度监测曲线',
x: 'center'
},
xAxis: {
type: 'time',
splitLine: {
show: true
}
},
yAxis: {
type: 'log',
splitLine: {
show: true
},
axisLabel: {
formatter: function (value) {
return value.toExponential(1);
}
},
logBase: 10,
max: 1e-1,
min: 1e-12,
interval: [1e-12, 1e-11, 1e-10, 1e-9, 1e-8, 1e-7, 1e-6, 1e-5, 1e-4, 1e-3, 1e-2, 1e-1]
},
dataZoom: [{
type: 'slider',
show: true
}, {
type: 'inside',
show: true
}],
toolbox: {
right: 30,
feature: {
saveAsImage: {}
}
},
tooltip: {
trigger: 'axis'
},
series: [{
name: '单元1',
type: 'line',
showSymbol: false,
hoverAnimation: false,
data: [['2018/3/28 11:47', 1e-2], ['2018/3/28 11:48', 1e-3], ['2018/3/28 11:49', 5e-3]]
}],
legend: {
type: 'scroll',
top: 30,
data: ['单元1']
}
}
Other comments [其他信息]

Think is new-feature: https://github.com/ecomfe/echarts/issues/8014
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
因为echarts目前支持的最小精度是1e-10,#17624 可以解决这个问题