question: private static JFreeChart createChart ( ) { Number [ ] [ ] data = new Integer [ ] [ ] { { new Integer ( - 3 ) , new Integer ( - 2 ) } , { new Integer ( - 1 ) , new Integer ( 1 ) } , { new Integer ( 2 ) , new Integer ( 3 ) } } ; CategoryDataset dataset = DatasetUtilities . createCategoryDataset ( "S" , "C" , data ) ; return ChartFactory . createStackedBarChart3D ( "Stacked Bar Chart 3D" , "Domain" , "Range" , dataset , PlotOrientation . HORIZONTAL , true , true , true ) ; }
target:  Create a stacked bar chart with sample data in the range -3 to +3.