mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-11-10 08:55:31 +08:00
fix
This commit is contained in:
parent
415dc99d9b
commit
3d1786d4bc
1 changed files with 2 additions and 3 deletions
|
@ -386,8 +386,8 @@ const ECHART_VALUE_LABEL2 = function (dataFlags = []) {
|
||||||
const ECHART_TOOLTIP_FORMATTER = function (i, dataFlags = []) {
|
const ECHART_TOOLTIP_FORMATTER = function (i, dataFlags = []) {
|
||||||
if (!Array.isArray(i)) i = [i] // Object > Array
|
if (!Array.isArray(i)) i = [i] // Object > Array
|
||||||
const tooltip = [`<b>${i[0].name}</b>`]
|
const tooltip = [`<b>${i[0].name}</b>`]
|
||||||
i.forEach((a, idx) => {
|
i.forEach((a) => {
|
||||||
tooltip.push(`${a.marker} ${a.seriesName} : ${formatThousands(a.value, dataFlags[idx])}`)
|
tooltip.push(`${a.marker} ${a.seriesName} : ${formatThousands(a.value, dataFlags[a.seriesIndex])}`)
|
||||||
})
|
})
|
||||||
return tooltip.join('<br>')
|
return tooltip.join('<br>')
|
||||||
}
|
}
|
||||||
|
@ -1538,7 +1538,6 @@ class ChartCNMap extends BaseChart {
|
||||||
.find('.chart-body')
|
.find('.chart-body')
|
||||||
.height(H - (window.render_preview_chart ? 0 : 40))
|
.height(H - (window.render_preview_chart ? 0 : 40))
|
||||||
this.__lastHW = [H, W]
|
this.__lastHW = [H, W]
|
||||||
console.log(this.__lastHW)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export() {
|
export() {
|
||||||
|
|
Loading…
Reference in a new issue