This post is about getting D3 connected as an extension to Thingworx.
There are a number of existing extensions using D3 but I wanted to explore a simple use case to make it easier to get into and bring out 2 additional points
Using an infotableas data input
The output looks like the image below
and the data was generated by a Timer based random value generator that set the values on a Thing every minute.
The data into the Widget is from a core service QueryHistory (a wrapped service that uses QueryProperyHistory)
In this example I will use temp as the variable in focus
If you have never created an extension take a look at Widget Extensions Introduction which provides a start to understanding the steps defined below, which are the core points to keep it relatively short.
The extension will be called d3timeseries and will use the standard design pattern
Create a folder called d3timeseries and create a subfolder ui and a add a metadata.xml file to the d3timeseries