Line Chart Widget Extension
Dependencies
• If you are using pre-7.2 versions of the D3 Tree and/or D3 Network extensions, you must upgrade to the latest version(s) before using the Line Chart Widget Extension. This is due to updates to the d3v2 library that are also included in the Line chart widget extension.
• The Line Chart widget extension uses NVD3 and D3 third-party libraries. These two libraries are dependent on each other, and the D3 version 3.5.X is mandatory for the Line Chart to function properly in the Platform. So, it is mandatory for any other ThingWorx extension that needs to work with Line Chart to have a D3 library with the version 3.5.X. If the extension has any other D3 version, Line Chart cannot be used.
|
NVD3 is compatible with D3 version 3.5.3 and higher, but not with D3 version 4.X yet.
|
Introducing Line Chart Widget Extension
The line chart allows you to display a series of data points connected by lines. This data is supplied by a service that emits an infotable.
The Line Chart Widget Extension was designed to provide a lighter-weight, faster solution for mainstream applications. There is a line chart widget included as an out-of-the-box widget (within the label chart widget) in ThingWorx. The Line Chart Widget Extension includes some different and enhanced functionality and is described within this document. The Label Chart has some capabilities not duplicated in this Line Chart Extension, such as multiple Y-Axes.
Key enhancements include:
• Much faster loading, drawing, and resizing
• Improved rendering and anti-aliasing
• Displays larger data sets (1000 rows) faster than the built-in Label Chart
• Basic animation with duration setting
The line chart will support up to 2000 data points across up to 8 series updated at a rate of up to 6 times per minute.