java - How to show ColumnKey on bar in JFreeChart? -


enter image description here

i have stacked bar chart in image above. need show column keys ("series 1","series 2","series 3") on bars instead of values. how can that?

you can this:

renderer.setbaseitemlabelgenerator(             new standardcategoryitemlabelgenerator("{0}", numberformat.getinstance())); 

the label generator works off template replaces instances of '{0}' series name, '{1}' category key, , '{2}' data value. number formatter passed constructor used formatting data values (but in case, data value not displayed formatter not used).


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -