I've got a chart component here with simple data, dates and temperatures.What i wanted the table function to do is to log out the results array Only (ideally with just the Date key) on the console.
The table function is passed onto the OnCLick on the chart component so when a bar is clicked, an object is logged onto the console. I just need to narrow down the results array and log out just the Date bit
my function is on line 52 : https://codesandbox.io/s/floral-violet-822vg?file=/src/chart.js
this is what is currently being logged onto the console when a bar is clicked:
I just the results array to be logged onto the console. Thank you in advance