add pie chart for patient table