Closed pizzapanther closed 4 years ago
@vasturiano ready for review again
ok i added the data
attribute for the original object and I left const { timeRange, val, labelVal } = rawData[i].data[j].data[k];
I thought that was a nice way to cut down on line length and make it more readable.
ready for review @vasturiano
Looks great, thanks @pizzapanther!
I added copying all properties so you can store arbitrary data in the data point. This is useful so you can more easily add custom interactions. For example, I added an "ID" to the stored data so that when a segment is clicked, I can easily jump to a time and location on a connected map.