forked from ddrilling/asb_cloud_front
График на мониторинге сдвинут на 3% вверх
This commit is contained in:
parent
023d032e9d
commit
80622351f8
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user