When some values are much higher then remaining values in a chart, an axis scale break can be used. The axis scale break can remove redundant areas from a chart.
For using axis scale break the ChartBreakLine object has to be constructed and assigned to the chart object.
1 | //adding chart break line and setting it's position //removing Y values starting from 30 and 90 range from chart. ChartBreakLine breakLine = new ChartBreakLine(yAxis, 30, 90); //setting break line drawing style breakLine.setStrategy(BreakLineStrategies.SIMPLE); chart.setBreakLine(breakLine); |
Figure 5.2.6.1 Axis scale break Demonstration