updated scatter chart directive