The first answer given is for a numeric domain axis. If you have a category axis, you want this code:
CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);
More Related Contents:
- Random errors when changing series using JFreeChart
- How do I change a JFreeChart’s size
- How to display legend for Pie Chart in columns?
- JFreechart series tool tip above shape annotation
- Code for changing the color of subtasks in Gantt Chart
- Changing mercury color in thermometer in JFreeChart
- Displaying a histogram of image data
- JFreeChart line chart with text at each point
- JFreechart candlestick chart weird behaviour on drag
- JFreeChart with selectable domain axis and zoom
- Adding points to XYSeries dynamically with JfreeChart
- Display mouse coordinates near mouse as hints on mouse move
- Multiple axes on the same data
- How to set same scale for domain and range axes JFreeChart
- Logarithmic Axis Labels/Ticks Customization
- JFreeChart PolarPlot: mathematical orientation
- Creating a time series with jfreechart
- JFreeChart – Problem in creating moving chart
- Choose the series of data that you want to display
- Multiple graphs in multiple figures using jFreeChart
- Avoid item label overlap in time series 1D plots (JFreeChart)
- Populate JFreechart TimeSeriesCollection from Mysql DB?
- JFreeChart: X Axis contains time stamps
- Read data from CSV file into ArrayList and display in XY Chart
- How to use SwingWorker?
- scatter plot in jfreechart from database
- Resize Vertical Tick Label Height (XYStepChart)
- Add values to a specified series in a DynamicTimeSeriesCollection
- Java JFreeChart Category Step Chart horizontal (image to explane)
- Real time graph plotting starting time