modify mapOutput to use chartOutput as wrapper