feat: 修复count不正确的问题
This commit is contained in:
parent
84bbc15274
commit
b6aa9cf688
|
@ -199,7 +199,7 @@ export default {
|
||||||
handleTooltipFormat(params) {
|
handleTooltipFormat(params) {
|
||||||
const [xAxis, count] = params[0].value
|
const [xAxis, count] = params[0].value
|
||||||
const channel = Math.round(xAxis)
|
const channel = Math.round(xAxis)
|
||||||
const channelData = this.channelData.all && this.channelData.all.pointlist[channel]
|
const channelData = this.channelData.all && this.channelData.all.pointlist[channel - 1]
|
||||||
const energy = this.getEnergyByChannel(channel)
|
const energy = this.getEnergyByChannel(channel)
|
||||||
this.axisInfo = {
|
this.axisInfo = {
|
||||||
channel,
|
channel,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user