struts2-jfreechart-plugin

Changing custom colors in JFreeChart stacked 3D bar chart

纵然是瞬间 提交于 2019-12-20 03:11:34
问题 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

Changing custom colors in JFreeChart stacked 3D bar chart

浪尽此生 提交于 2019-12-01 23:23:38
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.createStackedBarChart3D(chartDescription, X-axis, Y-axis, dataset,PlotOrientation.VERTICAL, true, true, true);