Исправлена ошибка в рендере тултипа мониторинга

This commit is contained in:
goodmice 2022-07-19 10:43:02 +05:00
parent bf1ecce071
commit 547baa6289

View File

@ -14,7 +14,7 @@ export const cursorRender = (group, data) => {
if (group.charts.length <= 0) return <></> if (group.charts.length <= 0) return <></>
const firstChart = group.charts[0] const firstChart = group.charts[0]
const y = firstChart.y(d) const y = firstChart.y(d)
const yValue = firstChart.yAxis.format?.(y) ?? defaultValueRender(y, chart.yAxis.unit) const yValue = firstChart.yAxis.format?.(y) ?? defaultValueRender(y, firstChart.yAxis.unit)
const xFormat = (chart) => { const xFormat = (chart) => {
const v = chart.x(d) const v = chart.x(d)
return chart.xAxis.format?.(v) ?? defaultValueRender(v, chart.xAxis.unit) return chart.xAxis.format?.(v) ?? defaultValueRender(v, chart.xAxis.unit)