I use following chart code: Code: Select all double[][] data=new double[][] {{500}, {200}, {100}, {400}, {300}}; String[] rowKeys={"apple", "pear", "graph", "orange", "banana"}; String[] columnKeys={""}; dataset=DatasetUtilities.createCategoryDataset(rowKeys,columnKeys,data); chart=ChartFactory.createBarChart3D("Fruit sale graphic", "fruit", ...