preliminary code and data for generating service charts.