import { useEffect, useState } from 'react' import { Grid, GridItem } from '../../components/Grid' import { Column } from '../../components/charts/Column' export const ArchiveColumn = ({ lineGroup, data, interval, style, headerHeight, yStart }) => { const [lineGroupWithoutShapes, setLineGroupWithoutShapes] = useState([]) const [pv, setPV] = useState([]) useEffect(() => { const lgws = lineGroup.filter(cfg => !cfg.isShape) setLineGroupWithoutShapes(lgws) setPV(lgws.filter(line => line.showLabels).map(line => ({ color: line.color, label: line.label }))) }, [lineGroup]) return (
{pv?.map((v, idx) => ( {v.label} ))}
) }