BoxPlotSeries problem with data appened in JavaScript.



  • QtChart problem again. I'm trying BoxPlotSeries with a new boxSet added in the onCompleted event, but the new boxSet does not get displayed... :-( Any help??

    =========================
    import QtQuick 2.9
    import QtCharts 2.0

    ChartView {
    title: "Box Plot series"
    theme: ChartView.ChartThemeBrownSand
    legend.alignment: Qt.AlignBottom
    BoxPlotSeries {
    id: plotSeries
    name: "Income"

        BoxSet { label: "Jan"; values: [3, 4, 5.1, 6.2, 17, 17] }
        BoxSet { label: "Feb"; values: [5, 6, 7.5, 8.6, 17] }
        BoxSet { label: "Mar"; values: [3.2, 5, 5.7, 8, 9.2] }
        BoxSet { label: "Apr"; values: [3.8, 5, 6.4, 7, 8] }
        BoxSet { label: "May"; values: [4, 5, 5.2, 6, 7] }
    }
    
    Component.onCompleted: {
        plotSeries.append("June", [1,2,3,4,5]);
    }
    

    }


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.