public static void setUpChartData ( final ChartData chartData , final CTChart ctChart , final ThemesTable themeTable , final ChartObject ctObj ) { Object chartObj = null ; @ SuppressWarnings ( "rawtypes" ) List plotCharts = ctObj . getChartListFromCtChart ( ctChart ) ; // chart object if ( plotCharts != null && ( ! plotCharts . isEmpty ( ) ) ) { chartObj = plotCharts . get ( 0 ) ; } if ( chartObj != null ) { @ SuppressWarnings ( "rawtypes" ) List bsers = ctObj . getSerListFromCtObjChart ( chartObj ) ; if ( ! AppUtils . emptyList ( bsers ) ) { chartData . buildCategoryList ( ctObj . getCtAxDataSourceFromSerList ( bsers ) ) ; chartData . buildSeriesList ( bsers , themeTable , ctObj ) ; } } }
build chartData for line chart . chartData include categoryList and seriesList which used for generate jfreechart .