chart directive updated