patientData factory handles chart series