Directive with lineachart