Moved linechart to use directive