ThingWorx Extensibility > Extensions > Custom Charts > Bar Chart Widget Extension
Bar 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 Bar Chart extension. This is due to updates to the d3v2 library that are also included in the Bar Chart widget extension.
The Bar 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 Bar Chart to function properly in the Platform. So, it is mandatory for any other ThingWorx extension that needs to work with Bar Chart to have a D3 library with the version 3.5.X. If the extension has any other D3 version, Bar Chart cannot be used.
* 
NVD3 is compatible with D3 version 3.5.3 and higher but not with D3 version 4.X yet.
Introducing Bar Chart Extension
The bar chart is designed to compare quantities of units where the y-axis represents quantity. Series of units can be grouped, stacked, and color-coded.
It can be used with one or more data service result set(s), similar to other multiple series charts. If you use a single data service, you can choose fields to be represented as series in the chart.
The Bar Chart Widget Extension was designed to provide a lighter-weight, faster solution for mainstream applications. There is a label chart widget included as an out-of-the-box label widget in ThingWorx that can be configured to display data as a bar chart that provides advanced features that are not supported in this version of the Bar chart widget extension. It is more computational intensive and takes longer to load and draw.
Key enhancements include:
Much faster loading, drawing, and resizing
Improved rendering and anti-aliasing
Animation
New properties include:
The ability to display number values above each bar (single-series only)
A duration option that controls the speed of the chart during transitions in run time
Runtime option to view stacked or discrete series
Runtime option to view one or more series by clicking the legend
Reduced the number of default series properties that display in Mashup Builder so that unnecessary properties do not display when certain options are not enabled.
The bar chart will support up to 2000 data points across up to 8 series updated at a rate of up to 6 times per minute.
Was this helpful?