working on chart directive [#12]