Add callbacks for pie and donut chart