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 );
lineRenderer.setPositiveItemLabelPosition( position1 ); ItemLabelPosition position2 = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE9, TextAnchor.CENTER_RIGHT ); barRenderer.setNegativeItemLabelPosition( position2 ); lineRenderer.setNegativeItemLabelPosition( position2 ); } else if ( orientation == PlotOrientation.VERTICAL ) { lineRenderer.setPositiveItemLabelPosition( position1 ); ItemLabelPosition position2 = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE6, TextAnchor.TOP_CENTER ); barRenderer.setNegativeItemLabelPosition( position2 ); lineRenderer.setNegativeItemLabelPosition( position2 );