Только один номер ничего не показывает в AndroidPlot

Я хочу отобразить линию и гистограмму для сеанса вопрос / ответ, предпринятого пользователем. я используюAndroidPlot 0.6.0, Дата сеанса является доменной, а диапазон - количеством вопросов, на которые даны ответы.Yes или жеNo.

Выпуск: Список с одним элементом ничего не показывает на графике. Например, первый сеанс пользователя:

Список, по крайней мере, с двумя элементами, показывает график правильно. График правильно показывает две сессии с датой в качестве домена и количеством да / нет в качестве диапазона:

Мой код для линейного графика выглядит следующим образом:

XYSeries answeredYesSeries = new SimpleXYSeries(answeredYesList,
                SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, 
// Y_VALS_ONLY means use the element index as the x value
                "Answered Yes"); // Title of this series
        // Create a formatter to use for draw ing a series using
        // LineAndPointRenderer
        // and configure it from xml:
        LineAndPointFormatter series1Format = new LineAndPointFormatter();
        series1Format.setPointLabelFormatter(new PointLabelFormatter());
        series1Format.configure(getApplicationContext(),
                R.xml.line_point_formatter_with_plf1);

        // add count of questions answered with yes series to the xyplot:
        xyPlot.addSeries(answeredYesSeries, series1Format);

        XYSeries answeredNoSeries = new SimpleXYSeries(answeredNoList,
                SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, // Y_VALS_ONLY means
                                                    // use the element
                                                        // index as the x
                                                        // value
                "Answered No"); // Title of this series
        // Create a formatter to use for draw ing a series using
        // LineAndPointRenderer
        // and configure it from xml:
        LineAndPointFormatter series2Format = new LineAndPointFormatter();
        series2Format.setPointLabelFormatter(new PointLabelFormatter());
        series2Format.configure(getApplicationContext(),
                R.xml.line_point_formatter_with_plf2);

        // add count of questions answered with no series to the xyplot:
        xyPlot.addSeries(answeredNoSeries, series2Format);

У кого-нибудь есть решение?

Ответы на вопрос(1)

Ваш ответ на вопрос