Creating small color box for legend hover