How to use plotly.js library to create custom chart widget.
I want to create custom spc chart by using plotly.js library.
I have gone through the "Creating UI Widget for Thingworx", but I am not able to display chart for input infotable.
Most difficulty I am facing in passing the array values to xAxis and yAxis in my drawSpcChart() function. These array values I have to create from my input Data(Infotable) that I will get from a service "All Data" in composer.
drawSpcChart function I am calling in afterRender() in runtime.js file.
Can anyone please help me in creating the ide and runtime js files for this?