Adding macros support to charts