In This Chapter:
Showing data inside a bar graph is a great way to let users easily understand overall trends. Even technical people don't want to look through log files to analyze data. Everyone wants to take one look at a bar chart to get an overall the idea of what a dataset represents.
We spent a good deal of time displaying data in bar charts in Chapter 10. A class named Graph2D was used in Chapter 10 to take data and render at as a bar chart. A description of how to use the Graph2D class is given in Chapter 10. But this chapter goes a lot further than Chapter 10 and shows how to manipulate data before it is rendered as a bar graph.
You are probably wondering why data needs to be manipulated before it is rendered. There are a number of reasons why this might be so. The data values might have a small variation and their values are far from zero. In this case, you might want to adjust the data by subtracting a value from each of the data values so that the variation in the data is more pronounced and therefore makes trends easier to identify.
You might also want to take advantage of the capability to present data in such a way that it appears to support practically any conclusion. Exaggerating fluctuations, normalizing fluctuations, and performing any number of mathematical operations on the data can be done to alter its appearance. You know the saying: There are lies, damned lives, and statistics.
This chapter uses the Graph2D class from Chapter 10, but here we perform mathematical operations on the dataset before they are graphed. This will give you a good idea of what is possible if you plan to use the Graph2D class from Chapter 10.