Chart refractoring - auto scaling and CSS