| Auszug |
|---|
|
Nuclos Jasper multi axis chart: chart axis, position rightOrBottom, chart customizer, CategoryPlot, XYPlot, AxisLocation. |
Language: Deutsch · English
Multi axis
Combine several charts in a multi axis chart and position axes via design, XML or a customizer.
| Status |
|---|
| colour | Blue |
|---|
| title | Application developer |
|---|
|
| Status |
|---|
| colour | Green |
|---|
| title | Updated: Jul 2026 |
|---|
|
| Status |
|---|
| colour | Grey |
|---|
| title | applies to Nuclos 4.2026.x |
|---|
|
A multi axis chart combines several charts of the same type – e.g. with separate axes on the left and right.
Create a multi axis chart
- Drag the chart element from the palette onto the desired band.
- In the chart wizard choose Multi Axis Chart.
- Create a first chart via Next >, finish with Finish.

Multi axis chart in the wizard.
Move an axis to the right
In the design view
Select the chart axis → tab Chart Axis → desired position.
In the XML
Each chart inside <MultiAxisChart> starts with <axis>; add position="rightOrBottom" there.
Via a chart customizer
| Codeblock |
|---|
|
@Override
public void customize(JFreeChart chart, JRChart jasperChart) {
Plot plot = chart.getPlot();
if (plot instanceof CategoryPlot) {
((CategoryPlot) plot).setRangeAxisLocation(AxisLocation.TOP_OR_RIGHT);
((CategoryPlot) plot).setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
} else if (plot instanceof XYPlot) {
((XYPlot) plot).setRangeAxisLocation(AxisLocation.TOP_OR_RIGHT);
((XYPlot) plot).setDatasetRenderingOrder(DatasetRenderingOrder.FORWARD);
}
}
|
Related pages
Charts in the designer
Charts.
Open →