fix d3 graph color + nav bar as component