fixes #2731 - add color legend to the dashboard
(cherry picked from commit 3a124d9974f702560a13adf8e4c6d7f78f7f4684)
fixes #2665 - search on click in dashboard pie chart
(cherry picked from commit 2af890f2037658f86ce0856f5d5ba6d5691c2a38)