I currently have data stored for a line chart with an array of another array of tuples, so for example [[[1,2],[3,4]], [[5,6],[7,8]]]. What's the best way to get the maximum Y value across all lines from this structure?
I could create a helper function to get the maximum Y from an array, and then create a helper function to call the first helper function while looping through every line's data. Is there a much simpler way that I'm missing here? Thanks in advance