new AppHelper()
Helper singleton containing all one-time static functions
- Source:
Methods
-
<static> getSeriesDataTransformer(xKey, yKey, tKey)
-
Function to reshape a series object from containing column-wise data like
x: [0,1,2,3], y: [2,3,4,5], t: [5,6,7,8] to row-wise data like
values: [{0,2,5}, {1,3,6}, ...] etc.Parameters:
Name Type Description xKey
the x property name to use in the original data
yKey
the y property name to use in the original data
tKey
the t property name to use in the original data
- Source:
-
<static> trimSvg(svg)
-
Function to trim all white space from around a SVG DOM element
Parameters:
Name Type Description svg
the SVG DOM element
- Source: