300 Chart - Proper Generic Calculation Of Bar Chart Axis Stack Overflow