charting directive, refreshes chart