private void encodeChartSelection(FacesContext context, Chart chart) throws IOException {
UIComponent component = chart.getChartSelection();
if (component == null) return;
ChartSelection chartSelection = (ChartSelection) component;
chartSelection.encodeAll(context);
}
private void encodeChartMenuSupport(FacesContext context, Chart chart, DynamicImage dynamicImage,
ScriptBuilder buf) throws IOException {
UIComponent component = chart.getChartMenu();