java - How to control the increments of values on the Y-Axis of BarChart -


i attempting make uniform barchart ranges in wide number of values. have attempted adjust tick , other ranges. essentially, increase increments on yaxis fit bars proportionately. ideas?

also, should note instead of numberaxis, valueaxis.

thanks in advance.enter image description here

so how ended getting values square including setting rangeaxis range dynamically. removed 3d elements on suggestion of @fredk. using defaultcategorydataset (plot categoryplot), code below appropriate these conditions...

  logaxis yaxis = new logaxis("transaction time (ms)");          yaxis.setbase(10);         plot.setrangeaxis(yaxis);         yaxis.settickunit(new numbertickunit(1));         yaxis.setminortickmarksvisible(true);         yaxis.setautorange(true);         plot.setrangeaxis(yaxis);         plot.getrangeaxis().setlabelfont(new font("sansserif", font.bold, 14));         plot.getrangeaxis().setticklabelfont(new font("sansserif", font.bold, 12));          double maximum = (double) datasetutilities.findmaximumrangevalue(dataset);          plot.getrangeaxis().setlowerbound(10);         plot.getrangeaxis().setupperbound(maximum * 1.6); 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -