Extract chart value object

This simplifies the views (slightly).
Merge pull request #159 from kytrinyx/charts

Extract chart value object