График на мониторинге сдвинут на 3% вверх

This commit is contained in:
goodmice 2021-11-12 16:24:07 +05:00
parent 023d032e9d
commit 80622351f8

View File

@ -22,7 +22,7 @@ const GetLimitShape = (flowChartData, points, accessor) => {
export const MonitoringColumn = ({ lineGroup, data, flowChartData, interval, showBorder, style, headerHeight }) => { export const MonitoringColumn = ({ lineGroup, data, flowChartData, interval, showBorder, style, headerHeight }) => {
const [lineGroupWithoutShapes, setLineGroupWithoutShapes] = useState([]) const [lineGroupWithoutShapes, setLineGroupWithoutShapes] = useState([])
const dataLast = data?.[data.length - 1] const dataLast = data?.[data.length - 1]
const yStart = new Date(+(dataLast?.date ? new Date(dataLast.date) : new Date()) - interval * 1000) const yStart = new Date(+(dataLast?.date ? new Date(dataLast.date) : new Date()) - interval * 1000 * 0.97)
const pv = lineGroup.filter(line => line.showLabels).map(line => ({ const pv = lineGroup.filter(line => line.showLabels).map(line => ({
color: line.color, color: line.color,
label: line.label, label: line.label,