Jump to content
We've recently updated our Privacy Statement, available here ×

Grouping in Stacked Bar Chart


njrfrens

Recommended Posts

  • 4 weeks later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Got it... Its quite simple... Just wrote below code in customize method of the Chart Customizer class and it worked :-)


Code:
GroupedStackedBarRenderer renderer = new GroupedStackedBarRenderer();KeyToGroupMap map = new KeyToGroupMap("G1");map.mapKeyToGroup("Facility 1(ONE)", "G1");map.mapKeyToGroup("Facility 2(ONE)", "G1");map.mapKeyToGroup("Facility 3(ONE)", "G1");map.mapKeyToGroup("Facility 4(ONE)", "G1");map.mapKeyToGroup("Facility 1(ALL)", "G2");map.mapKeyToGroup("Facility 2(ALL)", "G2");map.mapKeyToGroup("Facility 3(ALL)", "G2");map.mapKeyToGroup("Facility 4(ALL)", "G2");renderer.setSeriesToGroupMap(map); CategoryPlot plot = (CategoryPlot) chart.getPlot();plot.setRenderer(renderer);

Post Edited by janardan n at 04/08/09 08:31
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...