- makeAccessorFunction
- isArrayOfArrays
- isArrayOfObjects
- isArrayOfObjectsOrEmpty
- randomId
- getPixelDimension
- getWidth
- getHeight
Handle cases where the user specifies an accessor string instead of an accessor function.
Returns Function accessor function
Check if an array is an array of arrays.
arr
Array array to be checked.
Returns Boolean whether or not the given array is an array of arrays.
Check if an array is an array of objects.
arr
Array array to be checked.
Returns Boolean whether or not the given array is an array of arrays.
Check if an array is an array of objects or empty.
arr
Array array to be checked.
Returns Boolean whether or not the array is an array of objects or empty.
Generate a random id. Used to create ids for clip paths, which need to be referenced by id.
Returns String random id string.
Get height or width in pixels.
Returns Number width or height in pixels.
Get width of element.
isFullWidth
Boolean whether or not to stretch the element to full width.width
Number custom width if applicable.target
String d3 select specifier.
Returns Number width of element.
Get height of element.
isFullHeight
Boolean whether or not to stretch the element to full height.height
Number custom height if applicable.target
String d3 select specifier.
Returns Number height of element.