Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Dynamically inserting data in graph

Dynamically inserting data in graph

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 285 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Raghvendra
    wrote on last edited by
    #1

    here is my graph.qml, i need to insert data (XYPoint(x:..,y:..)) in graph.qml from main.qml (I am accessing this graph.qml in main.qml)

    import QtQuick 2.0
    import QtCharts 2.0

    Item {
    id: graph
    anchors.fill: parent

    property bool tempVisibilty
    property bool torqueVisibilty
    property bool accelVisibilty
    function callme(val1,val2)
    {
        console.log("I am called = "+val1+" =ok= "+val2)
    }
    
    ChartView {
        id: chartView
        title: "Sensor"
        anchors.fill: parent
        antialiasing: true
    
        LineSeries {
            visible:tempVisibilty
            id:temperature
            name: "Temperature"
            XYPoint { x: 0; y: 0 }
            XYPoint { x: 1.1; y: 2.1 }
            XYPoint { x: 1.9; y: 3.3 }
            XYPoint { x: 2.1; y: 2.1 }
            XYPoint { x: 2.9; y: 4.9 }
            XYPoint { x: 3.4; y: 3.0 }
            XYPoint { x: 4.1; y: 3.3 }
    
    
        }
    

    }
    }

    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