renderer.setPositiveItemLabelPosition( position1 ); ItemLabelPosition position2 = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE9, TextAnchor.CENTER_RIGHT ); renderer.setNegativeItemLabelPosition( position2 ); } else if ( orientation == PlotOrientation.VERTICAL ) { ItemLabelPosition position1 = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER ); renderer.setPositiveItemLabelPosition( position1 ); ItemLabelPosition position2 = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER ); renderer.setNegativeItemLabelPosition( position2 );
barRenderer.setPositiveItemLabelPosition( position1 ); lineRenderer.setPositiveItemLabelPosition( position1 ); ItemLabelPosition position2 = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE9, TextAnchor.CENTER_RIGHT ); } else if ( orientation == PlotOrientation.VERTICAL ) { ItemLabelPosition position1 = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER ); barRenderer.setPositiveItemLabelPosition( position1 ); lineRenderer.setPositiveItemLabelPosition( position1 ); ItemLabelPosition position2 = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER );