created the chart js directive