- ANIMATOR
animates the charts in respect to the elapsed time
- COMPARE_ITEMS
manages the 'compare items' window
- DATA_LOAD
manages the 'data load' window
- DATA
processes and saves data
- NODE
saves references to all HTML elements needed by the app
- FILE
reads and validates the data from JSON data sets
- MAIN
contains main methods to initialize the web app
- MSG
manages overlay messages
- FOCUS_CHAIN
manages chains of elements that can be focussed via the tab key (hijacks the tab key event, and prevents normal focussing via browser)
- NAV
manages the UI of the navigation area
- _
contains utility functions
- VISUALIZER
generates HTML elements for charts
animates the charts in respect to the elapsed time
initializes the animator
Kind: static method of ANIMATOR
sets the speed of the animation
Kind: static method of ANIMATOR
Param | Type |
---|---|
speed | number |
sets CSS transition duration of animated HTML elements
Kind: static method of ANIMATOR
starts the animation loop
Kind: static method of ANIMATOR
stops the animation loop
Kind: static method of ANIMATOR
starts the animation
Kind: static method of ANIMATOR
pauses the animation
Kind: static method of ANIMATOR
restarts the animation
Kind: static method of ANIMATOR
stops animation without resetting, freezes it in last frame (no 'unpause' possible)
Kind: static method of ANIMATOR
stops animation and resets it to start state
Kind: static method of ANIMATOR
called by loop every frame and starts the animation pipeline
Kind: static method of ANIMATOR
refreshes rendered frame
Kind: static method of ANIMATOR
sorts items by their current value in tick
Kind: static method of ANIMATOR
updates 'bar chart' values for current frame
Kind: static method of ANIMATOR
updates 'ratio chart' values for current tick
Kind: static method of ANIMATOR
updates 'line chart' for current frame
Kind: static method of ANIMATOR
draws a line graph for an item on the line chart
Kind: static method of ANIMATOR
Param | Type | Description |
---|---|---|
canvas | Object |
HTML canvas |
context | Object |
Context of drawing canvas |
padding | Object |
Object holds 4 numbers for the padding on each site of the canvas |
item_id | string |
|
min | number |
smallest value of all items displayed in line chart |
max | number |
biggest value of all items displayed in line chart |
manages the 'compare items' window
sets items ids to compare in line chart
Kind: static method of COMPARE_ITEMS
Param | Type | Description |
---|---|---|
ids | Array |
array of item ids (strings) |
adds an items id to compare in line chart
Kind: static method of COMPARE_ITEMS
Param | Type | Description |
---|---|---|
id | string |
item id |
removes an items id, not to compare in line chart
Kind: static method of COMPARE_ITEMS
Param | Type | Description |
---|---|---|
id | string |
item id |
check if an item is set to be compared in line chart
Kind: static method of COMPARE_ITEMS
Returns: boolean
- true, if the item id is selected for comparison
Param | Type | Description |
---|---|---|
id | string |
item id |
resets item IDs selected for comparison in line chart
Kind: static method of COMPARE_ITEMS
initializes the 'compare items' window
Kind: static method of COMPARE_ITEMS
opens the 'compare items' window
Kind: static method of COMPARE_ITEMS
closes the 'compare items' window
Kind: static method of COMPARE_ITEMS
creates the buttons in the 'compare items' window
Kind: static method of COMPARE_ITEMS
moves the buttons into the correct position in the window
Kind: static method of COMPARE_ITEMS
handles the click on buttons in window for (un-)selecting items for line chart
Kind: static method of COMPARE_ITEMS
Param | Type | Description |
---|---|---|
e | event |
click event |
manages the 'data load' window
initializes the 'data load' window
Kind: static method of DATA_LOAD
opens the 'data load' window
Kind: static method of DATA_LOAD
closes the 'data load' window
Kind: static method of DATA_LOAD
gets dropped file from a drop event
Kind: static method of DATA_LOAD
Returns: Object
- file
Param | Type | Description |
---|---|---|
e | event |
drop event |
processes and saves data
- DATA
- .set(obj)
- .setItems(obj)
- .setRange(from, to)
- .setDataPoints(data)
- .getMax(item) ⇒
Object
- .getMin(item) ⇒
Object
- .getMean(item) ⇒
Object
- .getTotalMax(index) ⇒
number
- .getTotalMin(index) ⇒
number
- .getTotalMean(index) ⇒
number
- .calculateFixedData()
- .calculateUpscaledData()
- .calculateStatistics()
- .getItemColor(index) ⇒
string
- .formatNumber(num) ⇒
string
sets all values for the data set
Kind: static method of DATA
Param | Type | Description |
---|---|---|
obj | Object |
JSON data object |
sets all meta information of the items
Kind: static method of DATA
Param | Type | Description |
---|---|---|
obj | Object |
object holding meta information about the items in the data set |
sets the range for the animation
Kind: static method of DATA
Param | Type | Description |
---|---|---|
from | number |
start time |
to | number |
end time |
sets the data points (original, fixed, upscaled)
Kind: static method of DATA
Param | Type |
---|---|
data | Object |
returns the highest value of item's data points
Kind: static method of DATA
Returns: Object
- holding the maximum as 'value' and 'formatted'
Param | Type | Description |
---|---|---|
item | string |
item id |
returns the smallest value of item's data points
Kind: static method of DATA
Returns: Object
- holding the minimum as 'value' and 'formatted'
Param | Type | Description |
---|---|---|
item | string |
item id |
returns the mean average value of item's data points
Kind: static method of DATA
Returns: Object
- holding the mean average as 'value' and 'formatted'
Param | Type | Description |
---|---|---|
item | string |
item id |
returns the highest value of all item at the index
Kind: static method of DATA
Param | Type | Description |
---|---|---|
index | number |
tick |
returns the smallest value of all item at the index
Kind: static method of DATA
Param | Type | Description |
---|---|---|
index | number |
tick |
returns the mean average value of all item at the index
Kind: static method of DATA
Param | Type | Description |
---|---|---|
index | number |
tick |
calculates an object with missing data values being filled in
Kind: static method of DATA
calculates an object with data points increased to (item_num-1)*50+1
Kind: static method of DATA
calculates the min, max and mean of all data point values for every item
Kind: static method of DATA
returns a HEX color code from a limited selection; depends on given index
Kind: static method of DATA
Returns: string
- HEX color code
Param | Type | Description |
---|---|---|
index | number |
integer |
formats a number to its shortened word equivalent, e.g. 1300000 -> "1.3 Million"
Kind: static method of DATA
Returns: string
- formatted number
Param | Type |
---|---|
num | number |
saves references to all HTML elements needed by the app
adds missing references to HTML elements for 'data load' window
Kind: static method of NODE
adds missing references to HTML elements for 'compare items' window
Kind: static method of NODE
adds missing references to HTML elements for 'bar chart'
Kind: static method of NODE
adds missing references to HTML elements
Kind: static method of NODE
reads and validates the data from JSON data sets
- FILE
- .highlightDropArea()
- .unhighlightDropArea()
- .loadURL(url, [showConfirmation]) ⇒
Object
- .process(file)
- .getObjectFromJSON(str) ⇒
Object
- .isValidData(json) ⇒
boolean
|string
adds the 'highlight' effect to the file drop area
Kind: static method of FILE
removes the 'highlight' effect from the file drop area
Kind: static method of FILE
loads a data set from a URL (same origin)
Kind: static method of FILE
Returns: Object
- request - XMLHttpRequest
Param | Type | Default | Description |
---|---|---|---|
url | string |
link to JSON data set | |
[showConfirmation] | boolean |
false |
set to true, if a confirmation message that a 'data set' was loaded, should be shown in 'data load' window |
reads a JSON file and sends the generated object to MAIN
Kind: static method of FILE
Param | Type | Description |
---|---|---|
file | Object |
file reference |
parses a string into a JSON object
Kind: static method of FILE
Param | Type | Description |
---|---|---|
str | string |
JSON data |
determines if the given data set is valid
Kind: static method of FILE
Returns: boolean
- true, if data set is validstring
- error message, if it's an invalid object
Param | Type |
---|---|
json | Object |
contains main methods to initialize the web app
takes a data set as a string, and initializes the web app with the values
Kind: static method of MAIN
Param | Type | Default | Description |
---|---|---|---|
str | string |
JSON data as string | |
[showConfirmation] | boolean |
false |
on true, shows a message that a 'data set' was loaded in 'data load' window |
initializes all components of the web app and loads example data set
Kind: static method of MAIN
manages overlay messages
generates the HTML for a message element
Kind: static method of MSG
Returns: Object
- HTML element
Param | Type | Description |
---|---|---|
text | string |
content of the message |
type | string |
type of the message, defined in MSG.type |
displays an overlay message
Kind: static method of MSG
Param | Type | Description |
---|---|---|
text | string |
content of the message |
close_after_ms | number |
milliseconds until the message gets closed |
type | string |
type of the message, defined in MSG.type |
displays an overlay error message
Kind: static method of MSG
Param | Type | Description |
---|---|---|
text | string |
content of the message |
close_after_ms | number |
milliseconds until the message gets closed |
displays an overlay warning message
Kind: static method of MSG
Param | Type | Description |
---|---|---|
text | string |
content of the message |
close_after_ms | number |
milliseconds until the message gets closed |
hides the current overlay message
Kind: static method of MSG
manages chains of elements that can be focussed via the tab key (hijacks the tab key event, and prevents normal focussing via browser)
checks if the focus chain is currently active
Kind: static method of FOCUS_CHAIN
Returns: boolean
- true, if the focus chain is active
sets elements as a focus chain
Kind: static method of FOCUS_CHAIN
Param | Type | Description |
---|---|---|
a | Array | Object |
either array of HTML elements or object: { start : HTML element (start of chain) end : HTML element (end of chain) container : HTML element (contains all focussable elements in chain) } |
removes the current focus chain
Kind: static method of FOCUS_CHAIN
event function that hijacks the tab key event and sets the focus depending on the user's current position in the focus chain
Kind: static method of FOCUS_CHAIN
Param | Type | Description |
---|---|---|
e | event |
keydown event |
handles setting the user focus if the focus chain consists of an array of elements
Kind: static method of FOCUS_CHAIN
Param | Type | Description |
---|---|---|
e | event |
keydown event |
go_backwards | boolean |
if the focus go forward or backwards in focus chain |
handles setting the user focus if the focus chain consists of a start and end element
Kind: static method of FOCUS_CHAIN
Param | Type | Description |
---|---|---|
e | event |
keydown event |
go_backwards | boolean |
if the focus go forward or backwards in focus chain |
manages the UI of the navigation area
initializes navigation elements with events
Kind: static method of NAV
initializes elements in and for settings window
Kind: static method of NAV
opens settings window
Kind: static method of NAV
closes settings window
Kind: static method of NAV
toggles dark mode setting
Kind: static method of NAV
enables a button
Kind: static method of NAV
Param | Type | Description |
---|---|---|
btn | Object |
HTML element |
disables a button
Kind: static method of NAV
Param | Type | Description |
---|---|---|
btn | Object |
HTML element |
sets a specific 'speed setter' button active and disables all others
Kind: static method of NAV
Param | Type | Description |
---|---|---|
btn | Object |
HTML element |
shows the 'bar chart' and hides the 'line chart'
Kind: static method of NAV
shows the 'line chart' and hides the 'bar chart'
Kind: static method of NAV
sets the animation speed in ANIMATOR relative to the button pressed
Kind: static method of NAV
Param | Type | Description |
---|---|---|
e | event |
from click on animation speed buttons |
sets a custom animation speed defined by input value of text input
Kind: static method of NAV
Param | Type | Description |
---|---|---|
e | event |
from input on custom animation speed text input |
shows 'custom speed' menu and hides 'defined speed' menu
Kind: static method of NAV
shows 'defined speed' menu and hides 'custom speed' menu
Kind: static method of NAV
downloads 'line chart' canvas as .png image
Kind: static method of NAV
contains utility functions
- _
- .id(selector) ⇒
Object
- .class(selector, [context]) ⇒
HTMLCollection
- .tag(selector, [context]) ⇒
HTMLCollection
- .select(selector, [context], [callback]) ⇒
HTMLCollection
- .contains(parent, child) ⇒
boolean
- .create(str, [settings]) ⇒
Object
- .append(elem1, elem2)
- .prepend(elem1, elem2)
- .after(elem1, elem2)
- .before(elem1, elem2)
- .remove(elem)
- .empty(elem)
- .addEvent(elem, event, fn, [useCapture])
- .removeEvent(elem, event, fn, [useCapture])
- .onClick(elem, fn, [useCapture])
- .removeClick(elem, fn, [useCapture])
- .onInput(elem, fn, [useCapture])
- .removeInput(elem, fn, [useCapture])
- .onLoad(elem, fn, [useCapture])
- .removeLoad(elem, fn, [useCapture])
- .target(e) ⇒
Object
- .preventDefault(e)
- .addClass(elem, class_)
- .removeClass(elem, class_)
- .toggleClass(elem, class_)
- .hasClass(elem, class_) ⇒
boolean
- .getStyle(elem, style) ⇒
string
- .setStyles(elem, styles)
- .getHeight(elem) ⇒
number
- .getWidth(elem) ⇒
number
- .exists(val) ⇒
boolean
- .isElement(val) ⇒
boolean
- .isElementInDOM(val) ⇒
boolean
- .isNodelist(val) ⇒
boolean
- .isHTMLCollection(val) ⇒
boolean
- .isFunction(n) ⇒
boolean
- .isObject(n) ⇒
boolean
- .isArray(n) ⇒
boolean
- .isString(n) ⇒
boolean
- .isNumber(n) ⇒
boolean
- .isInteger(n) ⇒
boolean
- .isFloat(n) ⇒
boolean
- .escapeRegex(str) ⇒
string
- .encodeHTML(str) ⇒
string
- .decodeHTML(str) ⇒
string
- .escapeDoubleQuotes(str) ⇒
string
- .parseJSON(str) ⇒
Object
- .getMean(arr) ⇒
number
- .getMin(arr, [start_minimum]) ⇒
number
- .getMax(arr, [start_maximum]) ⇒
number
- .limitNumber(num, min, max, [callback]) ⇒
number
- .truncate(num) ⇒
number
- .sortArrayObjects(arr, property, [descending]) ⇒
Array
- .isEmptyObject(obj) ⇒
boolean
- .removeArrayIndex(arr, index) ⇒
Array
- .getObjectSize(obj) ⇒
number
- .id(selector) ⇒
selects HTML element by id
Kind: static method of _
Returns: Object
- if an element was found, returns HTML element
Param | Type | Description |
---|---|---|
selector | string |
string containing a HTML id |
selects HTML element(s) by class
Kind: static method of _
Returns: HTMLCollection
- if the selector and context (if given) were valid
Param | Type | Default | Description |
---|---|---|---|
selector | string |
string containing one or multiple space-seperated HTML classes | |
[context] | Object |
document |
container element in which to search for class |
selects HTML element(s) by tag
Kind: static method of _
Returns: HTMLCollection
- if the selector and context (if given) were valid
Param | Type | Default | Description |
---|---|---|---|
selector | string |
string containing a HTML tag | |
[context] | Object |
document |
container element in which to search for tag |
selects HTML element(s) using a CSS selector
Kind: static method of _
Returns: HTMLCollection
- if the selector and context (if given) were valid
Param | Type | Default | Description |
---|---|---|---|
selector | string |
string containing a valid CSS selector | |
[context] | Object |
document |
container element in which to search |
[callback] | function |
called when querySelector is not supported by browser |
check if the first HTML element contains the second
Kind: static method of _
Returns: boolean
- returns true if the first HTML element contains the second
Param | Type | Description |
---|---|---|
parent | Object |
supposed parent HTML element |
child | Object |
supposed child HTML element |
creates a new HTML element
Kind: static method of _
Returns: Object
- created HTML element
Param | Type | Description |
---|---|---|
str | string |
selector in the form of tag#id.class1.class2 |
[settings] | Object |
object holding the HTML and style properties |
appends elem2 in elem1
Kind: static method of _
Param | Type | Description |
---|---|---|
elem1 | Object |
HTML element |
elem2 | Object |
HTML element to append |
prepends elem2 in elem1
Kind: static method of _
Param | Type | Description |
---|---|---|
elem1 | Object |
HTML element |
elem2 | Object |
HTML element to prepend |
inserts elem2 after elem1
Kind: static method of _
Param | Type | Description |
---|---|---|
elem1 | Object |
HTML element |
elem2 | Object |
HTML element to insert |
inserts elem2 before elem1
Kind: static method of _
Param | Type | Description |
---|---|---|
elem1 | Object |
HTML element |
elem2 | Object |
HTML element to insert |
removes a HTML element from the DOM
Kind: static method of _
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
removes all child HTML elements of a HTML element
Kind: static method of _
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
adds an event listener to a HTML element
Kind: static method of _
Param | Type | Default | Description |
---|---|---|---|
elem | Object |
HTML element | |
event | string |
event type | |
fn | function |
function to be called when the event is triggered | |
[useCapture] | boolean |
false |
removes an event listener from a HTML element
Kind: static method of _
Param | Type | Default | Description |
---|---|---|---|
elem | Object |
HTML element on which the event was defined | |
event | string |
event type | |
fn | function |
function that was defined to be triggered from the event | |
[useCapture] | boolean |
false |
the same useCapture value defined when creating the event |
adds a 'click' event listener to a HTML element
Kind: static method of _
Param | Type | Default | Description |
---|---|---|---|
elem | Object |
HTML element | |
fn | function |
function called on trigger | |
[useCapture] | boolean |
false |
removes a 'click' event listener with the given parameters from a HTML element
Kind: static method of _
Param | Type | Default | Description |
---|---|---|---|
elem | Object |
HTML element | |
fn | function |
function | |
[useCapture] | boolean |
false |
adds an 'input' event listener to a HTML element
Kind: static method of _
Param | Type | Default | Description |
---|---|---|---|
elem | Object |
HTML element | |
fn | function |
function called on trigger | |
[useCapture] | boolean |
false |
removes an 'input' event listener with the given parameters from a HTML element
Kind: static method of _
Param | Type | Default | Description |
---|---|---|---|
elem | Object |
HTML element | |
fn | function |
function | |
[useCapture] | boolean |
false |
adds a 'load' event listener to a HTML element
Kind: static method of _
Param | Type | Default | Description |
---|---|---|---|
elem | Object |
HTML element | |
fn | function |
function called on trigger | |
[useCapture] | boolean |
false |
removes a 'load' event listener with the given parameters from a HTML element
Kind: static method of _
Param | Type | Default | Description |
---|---|---|---|
elem | Object |
HTML element | |
fn | function |
function | |
[useCapture] | boolean |
false |
returns the target element of an event object
Kind: static method of _
Returns: Object
- target HTML element
Param | Type | Description |
---|---|---|
e | event |
HTML element on which the event was defined |
prevents default event actions happening for this specific event
Kind: static method of _
Param | Type |
---|---|
e | event |
adds class to HTML element
Kind: static method of _
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
class_ | string |
class name (using multiple class names may not work in older browsers) |
removes class from HTML element
Kind: static method of _
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
class_ | string |
class name (using multiple class names may not work in older browsers) |
toggles class on and off on HTML element
Kind: static method of _
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
class_ | string |
class name (using multiple class names may not work in older browsers) |
checks if the HTML element has the given class
Kind: static method of _
Returns: boolean
- true, if HTML element has the given class
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
class_ | string |
single class name |
returns value of given css property
Kind: static method of _
Returns: string
- CSS property value
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
style | string |
CSS property name |
sets the given CSS property values to the HTML element
Kind: static method of _
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
styles | Object |
Object holding key (CSS property name) and value (CSS property value) pairs |
returns browser-rendered height of HTML element
Kind: static method of _
Returns: number
- height in pixels
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
returns browser-rendered width of HTML element
Kind: static method of _
Returns: number
- width in pixels
Param | Type | Description |
---|---|---|
elem | Object |
HTML element |
check if a value is defined and not null
Kind: static method of _
Returns: boolean
- returns true if the element exists
Param | Type |
---|---|
val | * |
check if a value is a HTML element
Kind: static method of _
Param | Type |
---|---|
val | * |
check if a value is a HTML element in the DOM
Kind: static method of _
Param | Type |
---|---|
val | * |
check if a value is a HTML Nodelist
Kind: static method of _
Param | Type |
---|---|
val | * |
check if a value is a HTMLCollection
Kind: static method of _
Param | Type |
---|---|
val | * |
tests if variable is a function
Kind: static method of _
Returns: boolean
- true, if variable is a function
Param | Type |
---|---|
n | * |
tests if variable is an object (excluding null object)
Kind: static method of _
Returns: boolean
- true, if variable is an object (excluding null)
Param | Type |
---|---|
n | * |
tests if variable is an array
Kind: static method of _
Returns: boolean
- true, if variable is an array
Param | Type |
---|---|
n | * |
tests if variable is a string
Kind: static method of _
Returns: boolean
- true, if variable is a string
Param | Type |
---|---|
n | * |
tests if variable is a number
Kind: static method of _
Returns: boolean
- true, if variable is a number
Param | Type |
---|---|
n | * |
tests if variable is an integer
Kind: static method of _
Returns: boolean
- true, if variable is an integer
Param | Type |
---|---|
n | * |
tests if variable is a float (floating point number)
Kind: static method of _
Returns: boolean
- true, if variable is a float
Param | Type |
---|---|
n | * |
escapes string to be regex-compatible
Kind: static method of _
Returns: string
- escaped regex-friendly string
Param | Type |
---|---|
str | string |
encodes HTML reserved characters in a string
Kind: static method of _
Returns: string
- encoded HTML-friendly string
Param | Type |
---|---|
str | string |
decodes HTML reserved characters in a string
Kind: static method of _
Returns: string
- decoded string
Param | Type |
---|---|
str | string |
escapes the double quotes in a string
Kind: static method of _
Param | Type |
---|---|
str | string |
parses a string containing JSON data and returns it as an object
Kind: static method of _
Returns: Object
- object with JSON structure
Param | Type | Description |
---|---|---|
str | string |
JSON string |
returns the mean average of an array of number
Kind: static method of _
Returns: number
- average of numbers
Param | Type | Description |
---|---|---|
arr | Array |
array of numbers |
returns the smallest number of an array of number
Kind: static method of _
Returns: number
- smallest number
Param | Type | Default | Description |
---|---|---|---|
arr | Array |
array of numbers | |
[start_minimum] | number |
Number.MAX_VALUE |
returned number needs to be smaller than this number |
returns the biggest number of an array of number
Kind: static method of _
Returns: number
- biggest number
Param | Type | Default | Description |
---|---|---|---|
arr | Array |
array of numbers | |
[start_maximum] | number |
Number.MIN_VALUE |
returned number needs to be at least this big |
replaces a number if it exceeds the given upper or lower limit
Kind: static method of _
Returns: number
- 'num' (or the closest number to it in range of min to max)
Param | Type | Description |
---|---|---|
num | number |
number to process |
min | number |
smallest the number is allowed to be |
max | number |
biggest the number is allowed to be |
[callback] | function |
called if the number had been below or above the limit |
strips digits after comma from a number
Kind: static method of _
Returns: number
- truncated number
Param | Type | Description |
---|---|---|
num | number |
number to truncate |
sort array containing objects with the same key structure by the values of a given property
Kind: static method of _
Returns: Array
- sorted array
Param | Type | Default | Description |
---|---|---|---|
arr | Array |
array containing objects with the same key structure | |
property | string |
property name (key) by which values to sort | |
[descending] | Array |
false |
final order of sorted values |
check if an object is empty
Kind: static method of _
Returns: boolean
- true, if the object is empty
Param | Type |
---|---|
obj | Object |
removes an index from an array
Kind: static method of _
Returns: Array
- array without this index
Param | Type | Description |
---|---|---|
arr | Array |
|
index | number |
index position to remove |
returns the amount of keys in an object
Kind: static method of _
Param | Type |
---|---|
obj | Object |
generates HTML elements for charts
creates the HTML elements needed for the charts using current DATA
Kind: static method of VISUALIZER
generates HTML element for a item in the bar chart
Kind: static method of VISUALIZER
Returns: Object
- multiple HTML elements in object
Param | Type |
---|---|
item_id | string |
generates HTML element for item in ratio chart
Kind: static method of VISUALIZER
Returns: Object
- multiple HTML elements in object
Param | Type |
---|---|
item_id | string |
called by a click event to open a specific line chart
Kind: static method of VISUALIZER
Param | Type | Description |
---|---|---|
event | e |
click event |
generates full statistics HTML section
Kind: static method of VISUALIZER
generates a HTML element containing a HTML structure with statistical information about an item
Kind: static method of VISUALIZER
Returns: Object
- HTML element
Param | Type | Description |
---|---|---|
index | integer |
Index in statistics array |
dominant_metric | string |
Sorting metric by which the statistic is currently sorted |
sorts items in statistic by a certain metric
Kind: static method of VISUALIZER
Param | Type | Description |
---|---|---|
metric | string |
Sorting metric: min |