Fix order of plotting multiple sets and fix min/max for histograms

Before this fix the order of plotting was reversed
Causing the plot colors to be in the wrong order
(i.e. detector 3 was red)

Fix finding the max/min from multiple arrays in histograms
Data values are stored as strings (from the parse_csv),
when js compares strings is does this per character,
so make a float first!!