|
@@ -429,15 +429,15 @@ const initRelevanceChart=(data)=>{
|
|
|
|
|
|
let tooltip = {
|
|
|
formatter: function() {
|
|
|
- let str = `<p>相关性系数:${this.y}</p>`
|
|
|
+ let str = `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${this.x}期</p>`
|
|
|
return str
|
|
|
},
|
|
|
formatterCh: function() {
|
|
|
- let str = `<p>相关性系数:${this.y}</p>`
|
|
|
+ let str = `<p>相关性系数:${this.y.toFixed(4)}</p><br><p>领先${this.x}期</p>`
|
|
|
return str
|
|
|
},
|
|
|
formatterEn: function() {
|
|
|
- let str = `<p>Correlation coefficient:${this.y}</p>`
|
|
|
+ let str = `<p>Correlation coefficient:${this.y.toFixed(4)}</p><br><p>lead${this.x}stage</p>`
|
|
|
return str
|
|
|
}
|
|
|
}
|