I have an jquery application which receives the data from external source like mqtt,
onMessageArrived i.e, on change in data - datasource in igDataChart the graph is not updating with latest/new value added though the control is coming to igDataChart method
$("#Speed").igDataChart({ // remove: true, width : "100%", height : "400px", title : "Time vs Speed and speedlimit", horizontalZoomable : true, verticalZoomable : true, windowResponse : "immediate", overviewPlusDetailPaneVisibility : "visible", dataSource : speedJarray, axes : [ { name : "NameAxis", type : "categoryX", title : "Time", label : "entered" }, { name : "SpeedAxis", type : "numericY", minimumValue : 0, title : "KMPH", } ], series : [ { title : "Speed", name : "Speed", type : "spline", xAxis : "NameAxis", yAxis : "SpeedAxis", thickness: 3, isTransitionInEnabled : true, isHighlightingEnabled : true, showTooltip : true, valueMemberPath : "speedO", transitionDuration: 500 }, { title : "SpeedLimit", name : "SpeedLimit", type : "spline", xAxis : "NameAxis", yAxis : "SpeedAxis", thickness: 3, showTooltip : true, isTransitionInEnabled : true, isHighlightingEnabled : true, valueMemberPath : "speedlimitO", transitionDuration: 500 } ] }); $("#Speed").igDataChart("flush");
this is how my code looks like, on adding json object to speedJarray Iam calling drawSpeed(), but only first time the graph is plotting but not from the second time
Hello,
I am still following up. Have you been able to resolve the issue?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.Thank you for choosing Infragistics components!
Hello Suma,
Please refer to the following article.
Thanks for your reply, as given in API it returns variable say responseCan you share any sample few lines of code so that I can have a look on how and where to use itLike whats the use of the response object it is returning and how to make use of it
Thank you for contacting us!
In order to update your dataSource and the chart you can use notifyInsertItem method.
Let me know if you need further assistance.