Assign a var property to another offline



  • Hi,
    following code is a chart data variable that i try to set it to my chart offline
    in other words, i want to set this property to my chart and when i change values of this var, it don't change my chart

    @ property var cl : {
    'labels': ["January","February","March","April","May","June","July","January"],
    'datasets': [{
    fillColor : "red",
    strokeColor : Qt.rgba(220,220,220,1),
    pointColor : Qt.rgba(220,220,220,1),
    pointStrokeColor : "#fff",
    pointHighlightFill : "#fff",
    pointHighlightStroke : Qt.rgba(220,220,220,1),
    data : [100,100,100,20,0,0,0,0]
    }, {
    fillColor: "blue",
    strokeColor: Qt.rgba(151,187,205,1),
    pointColor: Qt.rgba(151,187,205,1),
    pointStrokeColor: "#ffffff",
    pointHighlightFill : "#fff",
    pointHighlightStroke : Qt.rgba(220,220,220,1),
    data : [0,10,10,20,20,100,20,100]
    }]
    }@

    my assign code is:
    @selected.chartData=cl@

    please help!!!!!


Log in to reply
 

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