Draw charts from JSON api. Fixes #24.