1 2 3 4 5 6
| CategoryLabelPositions c = new CategoryLabelPositions(new CategoryLabelPosition(RectangleAnchor.BOTTOM, TextBlockAnchor.CENTER, TextAnchor.CENTER, angle, CategoryLabelWidthType.RANGE, 0.50f), // TOP
new CategoryLabelPosition(RectangleAnchor.TOP, 0, 0, angle, CategoryLabelWidthType.RANGE, 0.50f), // BOTTOM
new CategoryLabelPosition(RectangleAnchor.RIGHT, TextBlockAnchor.CENTER, TextAnchor.CENTER, angle, CategoryLabelWidthType.RANGE, 0.50f), // LEFT
new CategoryLabelPosition(RectangleAnchor.LEFT, TextBlockAnchor.CENTER, TextAnchor.CENTER, angle, CategoryLabelWidthType.RANGE, 0.50f) // RIGHT
);
domainAxis.setCategoryLabelPositions(c); |
Partager