From e3066b7619dc11f4bde7dfbd8b4652d2418d9b48 Mon Sep 17 00:00:00 2001 From: goodmice Date: Tue, 19 Jul 2022 10:41:19 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=82=D1=83=D0=BB=D1=82=D0=B8=D0=BF?= =?UTF-8?q?=D0=B0=20=D0=B2=20TVD=20=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/WellOperations/Tvd/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/WellOperations/Tvd/index.jsx b/src/pages/WellOperations/Tvd/index.jsx index ef19cae..0451af3 100755 --- a/src/pages/WellOperations/Tvd/index.jsx +++ b/src/pages/WellOperations/Tvd/index.jsx @@ -35,7 +35,7 @@ const tooltipRender = (data) => { {chart.label}: - {data.map((d, i) => { + {data.slice(0, 2).map((d, i) => { const text = `${xFormat(chart.x(d))} :: ${yFormat(chart.y(d))}` const href = ['plan', 'fact'].includes(chart.key) && `/well/${d.idWell}/operations/${chart.key}/?selectedId=${d.id}` @@ -103,7 +103,7 @@ const domain = { } const plugins = { - tooltip: { enabled: true, limit: 3, render: tooltipRender }, + tooltip: { enabled: true, limit: 3, height: 200, render: tooltipRender }, menu: { enabled: false }, legend: { enabled: true, offset: { x: 400 }, type: 'horizontal' }, cursor: { enabled: false }