处理Gamma谱的 Y log Scale渲染问题
This commit is contained in:
parent
9d0e6e04b6
commit
393c6ecfa0
|
@ -650,7 +650,7 @@ export default {
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
let arr = data.map(item => {
|
let arr = data.map(item => {
|
||||||
if (item==0) {
|
if (item==0) {
|
||||||
return 1
|
return 1.001
|
||||||
} else {
|
} else {
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
|
@ -668,6 +668,16 @@ export default {
|
||||||
dataArr = str === "G"?this.dataSourceSpectrum_G:this.dataSourceSpectrum_B
|
dataArr = str === "G"?this.dataSourceSpectrum_G:this.dataSourceSpectrum_B
|
||||||
}
|
}
|
||||||
let options = {
|
let options = {
|
||||||
|
tooltip: {
|
||||||
|
trigger: 'axis',
|
||||||
|
formatter: function (params) {
|
||||||
|
return `<div>${params[0].axisValueLabel}</div>
|
||||||
|
<div style="color:#0656ff">
|
||||||
|
value:${e.target.checked ? params[0].value == 1.001 ? 0 : params[0].value : params[0].value}
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
}
|
||||||
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: str==="G"?this.yAxisType_g:this.yAxisType_b,
|
type: str==="G"?this.yAxisType_g:this.yAxisType_b,
|
||||||
splitLine: {
|
splitLine: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user