use the more idiomatic way of checking if association is empty
renamed install_status_chart partial to pie_chart as it is more intention-revealing
refactored charts. preparing for machine database charts