Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. BoxPlotSeries problem with data appened in JavaScript.

BoxPlotSeries problem with data appened in JavaScript.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 283 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    ymhsieh
    wrote on last edited by
    #1

    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]);
    }
    

    }

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved