fixes #2731 - add color legend to the dashboard
fixes #2665 - search on click in dashboard pie chart