Setting Dates for a Visualization [Reactjs]
up vote 0 down vote favorite So I am using Chart.js for my data visualization. And the visualization is being made with this data: var productionData = labels: ["10-15-2018", "10-16-2018", "10-17-2018", "10-18-2018", "10-19-2018", "10-20-2018"], datasets: [producedData, defectsData, qiData, safetyData, workerData, overtimeData, downtimeData] ; This currently, displays data for all dates from 10-15-2018 to 10-20-2018 but I want to be able to take subsets like persay 10-16-2018 to 10-19-2018. I have already added two date textfields that a user will use so they can only see data between the two selected dates that they chose (inclusive). example of textfield: <Grid item xs=6 style= marginTop: 10, marginBottom: 10 align="center"> <TextField id="initialDate" label="Initial Date" type="date" defaultValue="2018-10-15" /> </Grid> However, I am uns...