implement basic line-chart directive