This commit is contained in:
RB 2024-08-20 15:50:24 +08:00
parent 415dc99d9b
commit 3d1786d4bc

View file

@ -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() {