lineGraph directive updated