private AbstractXYItemRenderer createRenderer(Chart chart, XYDataset ds) {
final LineChartView chartView = (LineChartView) chart.getChartView();
AbstractXYItemRenderer renderer;
if (chartView.getLineAreaFill() != null) {
renderer = new XYLineFillRenderer();
} else {
renderer = chartView.isEnable3D()
? new XYLineRenderer3DAdapter()
: new XYLineRendererAdapter();
}