jfree / jfreechart

A 2D chart library for Java applications (JavaFX, Swing or server-side).
http://www.jfree.org/jfreechart/
GNU Lesser General Public License v2.1
1.2k stars 459 forks source link

set axis arrow and location #380

Open Wu-Z-J opened 1 year ago

Wu-Z-J commented 1 year ago

how do I set CategoryAxis arrow visible and label location on the right side of the axis?

// I need label on the right side of the axis , but this location is bottom , middle or top
domainAxis.setLabelLocation(axisLabelLocation);

// only NumberAxis set arrow visible
rangeAxis.setPositiveArrowVisible(true);
trashgod commented 1 year ago

I don't see any support for such arrows in a CategoryAxis; you may be able get some ideas from ValueAxis, which uses a rotated Polygon.