Moved most helper methods outside of function binnedLineChart
Moved most helper methods outside of function binnedLineChart

Now these functions will only be generated once and behave more like a library than something part of each chart.

mathewgrabau/shmotg,MattWoelk/shmotg,mathewgrabau/shmotg