Interface ChartsCustomizer


  • public interface ChartsCustomizer
    Callback interface for customizing chart rendering within the data-to-chart pipeline.

    Implementations of this interface can intercept and modify chart rendering configurations before the chart is displayed. This allows for dynamic adjustments, styling changes, or additional logic to be applied based on the provided chart metadata and runtime state.

    Configuration

    To apply a custom implementation, specify the class in the io.keikai.chart.customizer.class library property:

    
     <library-property>
         <name>io.keikai.chart.customizer.class</name>
         <value>com.example.MyChartCustomizer</value>
     </library-property>
     
    Since:
    6.2.0
    Author:
    jameschu
    • Method Detail

      • customize

        void customize​(ZssCharts chart,
                       io.keikai.model.SChart chartInfo)
        Customize the chart before it is rendered.
        Parameters:
        chart - the ZssCharts instance representing the chart object that will be rendered, allowing direct modification of its properties.
        chartInfo - the SChart metadata describing the chart's configuration, source data, and other relevant information. This object is read-only and must not be modified by the implementation.