Extend ChartJS and make selection chart dynamic

This should be the final fix.

Change-Id: Ied20aaf57a97f358ce419811d70b62e1e4443386