move most graph styles into js