Changing custom colors in JFreeChart stacked 3D bar chart
问题 I have already searched enough on web but with no luck. I have created a stacked 3d bar chart wherein I am unable to change the default colors. I tried all the advices provided . Below a small snippet of my code. This is my input. My Data from Db is: A 0 2 B 15 53 C 0 2 D 0 2 E 0 1 F 1 0 G 0 1 Somehow I converted this to dataset requirement and also added items and models. CategoryDataset dataset = DatasetUtilities.createCategoryDataset(item,models, data); chart = ChartFactory