jasper reports - JFreeChart: overlapping bars in XY chart that have the same value -


i have problem 2 bars different series overlap each other when have same value. , 1 of both on top of other. unfortunately, want 1 in back, front :

enter image description here

i tried changing order of category expression, no avail. can tell me how can orange bar on top of blue 1 please ?

you may try datasetrenderingorder:

xyplot plot = jfreechart.getxyplot(); plot.setdatasetrenderingorder(datasetrenderingorder.forward); // or reverse 

or

plot.setseriesrenderingorder(datasetrenderingorder.forward); 

if neither works, isn't bad idea use stacked bar.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -