new Value(name, attrName, index, sum, relevance, color, xWeight, yWeight, xCoord, yCoord)
Represents a value. A value always belongs to an attribute. An attribute can have multiple values, which are in an array, and if two values are merged, one value is removed to from the array and appended to the reference
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the value. |
attrName |
string | Name of the parent attribute. |
index |
int | Index for reference in the visualization. |
sum |
int | Total sum of entrys with this value. |
relevance |
float | Value of relevance calculated by the MCA. |
color |
d3.color | Color of the value in the visualization. |
xWeight |
float | Contribution to the x-axis during the MCA. |
yWeight |
float | Contribution to the y-axis during the MCA. |
xCoord |
float | Coordinate on the x-Axis of the visualization. |
yCoord |
float | Coordinate on the y-Axis of the visualization. |
- Source:
Members
id
ID is used in the visualization to group voronoi cells by distance.
- Source:
last
Last element in the double linked list
- Source:
next
Area is the size of the area of the voronoi cell in % of the whole area.
this.area = 0;
/** Next element in the double linked list
- Source:
Methods
getHead()
Get List head.
- Source:
getIndex()
Returns the index of itself, or recursivly of the first element in the list.
- Source:
getLast()
Get last element in list
- Source:
getName()
Returns the name of itself, or recursivly of all appended values.
- Source:
getNext()
Get next element in list
- Source:
removeFromList()
Remove element from list.
- Source:
setIndex()
Set index of itself, and for all appended elements.
- Source:
setLast()
Set last element of list.
- Source:
setNext()
Set next element of list.
- Source: