Fix typeahead lookup and chart's legend.