feat: line graph

This commit is contained in:
Nikola Ubavic 2022-08-13 23:13:22 +02:00 committed by Rafael
parent 80715259b1
commit bd806848b3
4 changed files with 773 additions and 0 deletions

View file

@ -5,6 +5,7 @@ import GraphTooltip from '../components/tooltips/GraphTooltip'
import HourOfDayBarGraph from './HourOfDayBarGraph'
import OverTimeDotGraph from './OverTimeDotGraph'
import OverTimeLineGraph from './OverTimeLineGraph'
import TopMachinesBarGraph from './TopMachinesBarGraph'
const GraphWrapper = ({
@ -37,6 +38,19 @@ const GraphWrapper = ({
log={log}
/>
)
case 'volumeOverTime':
return (
<OverTimeLineGraph
data={data}
period={period}
timezone={timezone}
setSelectionCoords={setSelectionCoords}
setSelectionDateInterval={setSelectionDateInterval}
setSelectionData={setSelectionData}
selectedMachine={selectedMachine}
log={log}
/>
)
case 'topMachinesVolume':
return (
<TopMachinesBarGraph