Move selector and toInt methods from Google to generic
Display total chart in 1st tab