Datetime picker is working now, max and min values of legend change automatically
Updating colors according to legend