Legend support added to chart_dialog