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 }