add pie chart for visit and encounter data