more tweaks to chart embed