192 lines
3.4 KiB
JavaScript
192 lines
3.4 KiB
JavaScript
import { buildLineSeries } from '@/utils/chartHelper'
|
|
import {
|
|
baseLineCtrlPoint,
|
|
baseLineSeries,
|
|
compareLineSeries,
|
|
lcLineSeries,
|
|
scacLineSeries,
|
|
spectrumSeries,
|
|
stripReferenceLineSeries,
|
|
stripSumOrCutLineSeries
|
|
} from './seriesBuilder'
|
|
|
|
export const GammaOptions = {
|
|
option: {
|
|
grid: {
|
|
top: 40,
|
|
left: 60,
|
|
right: 50,
|
|
containLabel: true
|
|
},
|
|
title: {
|
|
text: '',
|
|
left: 'center',
|
|
bottom: 10,
|
|
textStyle: {
|
|
color: '#8FD4F8',
|
|
rich: {
|
|
a: {
|
|
padding: [0, 20, 0, 0],
|
|
fontSize: 16
|
|
}
|
|
}
|
|
}
|
|
},
|
|
tooltip: {
|
|
trigger: 'axis',
|
|
axisPointer: {
|
|
lineStyle: {
|
|
color: '#3CAEBB',
|
|
width: 1,
|
|
type: 'solid'
|
|
}
|
|
},
|
|
formatter: undefined,
|
|
className: 'figure-chart-option-tooltip'
|
|
},
|
|
xAxis: {
|
|
type: 'value',
|
|
name: 'Channel',
|
|
nameTextStyle: {
|
|
color: '#8FD4F8',
|
|
fontSize: 16,
|
|
align: 'right',
|
|
verticalAlign: 'top',
|
|
padding: [30, 0, 0, 0]
|
|
},
|
|
axisLine: {
|
|
lineStyle: {
|
|
color: '#ade6ee'
|
|
}
|
|
},
|
|
splitLine: {
|
|
show: false
|
|
},
|
|
axisLabel: {
|
|
textStyle: {
|
|
color: '#ade6ee'
|
|
},
|
|
formatter: value => {
|
|
return parseInt(value)
|
|
}
|
|
},
|
|
min: 1,
|
|
max: 'dataMax',
|
|
animation: false
|
|
},
|
|
yAxis: {
|
|
name: 'Counts',
|
|
type: 'value',
|
|
nameTextStyle: {
|
|
color: '#8FD4F8',
|
|
fontSize: 16
|
|
},
|
|
axisLine: {
|
|
show: true,
|
|
lineStyle: {
|
|
color: '#ade6ee'
|
|
}
|
|
},
|
|
splitLine: {
|
|
show: true,
|
|
lineStyle: {
|
|
color: 'rgba(173, 230, 238, .2)'
|
|
}
|
|
},
|
|
axisLabel: {
|
|
textStyle: {
|
|
color: '#ade6ee'
|
|
},
|
|
formatter: value => {
|
|
return value.toFixed(1)
|
|
}
|
|
},
|
|
min: 1,
|
|
max: 'dataMax',
|
|
animation: false
|
|
},
|
|
series: [
|
|
spectrumSeries,
|
|
baseLineSeries,
|
|
lcLineSeries,
|
|
scacLineSeries,
|
|
baseLineCtrlPoint,
|
|
compareLineSeries,
|
|
stripSumOrCutLineSeries,
|
|
stripReferenceLineSeries
|
|
],
|
|
brush: {}
|
|
},
|
|
// 缩略图配置
|
|
thumbnailOption: {
|
|
grid: {
|
|
top: 5,
|
|
left: 5,
|
|
right: 5,
|
|
bottom: 5
|
|
},
|
|
xAxis: {
|
|
type: 'value',
|
|
axisLine: {
|
|
show: false
|
|
},
|
|
splitLine: {
|
|
show: false
|
|
},
|
|
axisLabel: {
|
|
show: false
|
|
},
|
|
axisTick: {
|
|
show: false
|
|
},
|
|
min: 1,
|
|
max: 'dataMax'
|
|
},
|
|
yAxis: {
|
|
type: 'value',
|
|
axisLine: {
|
|
show: false
|
|
},
|
|
splitLine: {
|
|
show: false
|
|
},
|
|
axisLabel: {
|
|
show: false
|
|
},
|
|
axisTick: {
|
|
show: false
|
|
},
|
|
min: 1,
|
|
max: 'dataMax'
|
|
},
|
|
series: [
|
|
buildLineSeries('Spectrum', [], '#fff', {
|
|
silent: true,
|
|
markLine: {
|
|
silent: true,
|
|
symbol: 'none',
|
|
label: {
|
|
show: false
|
|
},
|
|
lineStyle: {
|
|
type: 'solid',
|
|
color: '#1397a3',
|
|
width: 1
|
|
},
|
|
data: []
|
|
}
|
|
})
|
|
]
|
|
}
|
|
}
|
|
|
|
export const graphAssistance = {
|
|
chartYAxisType: 'Log10',
|
|
Cursor: true,
|
|
Baseline: true,
|
|
Lc: true,
|
|
axisType: 'Channel',
|
|
spectrumType: 'Lines',
|
|
SCAC: true
|
|
}
|