dongqian 3 weeks ago
parent
commit
7267c771f6
  1. 30
      src/views/components/emotionDecod.vue

30
src/views/components/emotionDecod.vue

@ -66,15 +66,27 @@ function initQXNLZHEcharts(kline, qxnlzhqData) {
const dealData = spliteDate(data);
//
const KlineOption = {
tooltip: {
trigger: "item", //
// axisPointer: {
// type: "cross", //
// crossStyle: {
// color: "#999"
// }
// }
},
tooltip: {
trigger: 'item', //
axisPointer: {
type: 'cross', //
crossStyle: {
color: '#999'
}
},
formatter: function (params) {
if (params.seriesType === 'candlestick') {
const date = params.name
// 25
const open = params.data[1]
const close = params.data[2]
const low = params.data[3]
const high = params.data[4]
return `日期: ${date}<br/>开: ${open}<br/>收: ${close}<br/>低: ${low}<br/>高: ${high}`
}
return params.value[2]
}
},
//
grid: [

Loading…
Cancel
Save