if (chartView.getLineAreaFill() != null) {
renderer = new XYLineFillRenderer();
} else {
renderer = chartView.isEnable3D()
? new XYLineRenderer3DAdapter()
: new XYLineRendererAdapter();
}
if (chart.getChartSelection() != null && !chartView.isShapesVisible()) {
throw new IllegalStateException("Chart selection is unsupported with disabled shapes.");