finished moving data formatting for data visualizations to server side. set up this logic as architecture to accept additional logic for other kinds of visualizations