updated chart directive