Fix NaN-bug for determining extent during page load.
Remove unnecessary code.
Unnnested values from the JSON object. Charts are interrelated now.