How to attach afl to the charts