question: protected JFreeChart createChart ( CategoryDataset dataset , String title , MUOM uom ) { JFreeChart chart = ChartFactory . createBarChart3D ( title , " " , " " , dataset , PlotOrientation . VERTICAL , true , true , false ) ; if ( uom == null || uom . isHour ( ) ) { chart = ChartFactory . createBarChart3D ( title , Msg . translate ( Env . getCtx ( ) , "Days" ) , Msg . translate ( Env . getCtx ( ) , "Hours" ) , dataset , PlotOrientation . VERTICAL , true , true , false ) ; } else { chart = ChartFactory . createBarChart3D ( title , Msg . translate ( Env . getCtx ( ) , "Days" ) , Msg . translate ( Env . getCtx ( ) , "Kilo" ) , dataset , PlotOrientation . VERTICAL , true , true , false ) ; } return chart ; }
target:  create Chart using the data set and UOM