support hiding the chart legend