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