functional legend with word data and datetime
working search function with color scheme