Constructor
new renderFeature($scope)
constructor - description
Important the use of _.cloneDeep to ensure that no two instances of the same plugin share references of the same variables.
Important the use of _.cloneDeep to ensure that no two instances of the same plugin share references of the same variables.
Parameters:
| Name | Type | Description |
|---|---|---|
$scope |
type | A reference to the plugin's scope for the subscription to events |
Requires:
- module:D3.js
Requires
- module:D3.js
Methods
(static) actualizarColores()
actualizarColores - Changes the instance of color scale to be used by D3.
For discrete representation (fixed number of colors) an ad-hoc function is done.
For continous representation (range of colors) a D3.js scale function is used, based on
domain and color selected.
For discrete representation (fixed number of colors) an ad-hoc function is done.
For continous representation (range of colors) a D3.js scale function is used, based on
domain and color selected.
(static) cargarPlano(target, dir)
cargarPlano - Loads the svg resource into the DOM, hanging from the
element specified by the elementIdentifyer id attribute.
element specified by the elementIdentifyer id attribute.
Parameters:
| Name | Type | Description |
|---|---|---|
target |
type | id attribute |
dir |
type | svg resource url from where it is served |
(static) onInitEditMode()
onInitEditMode - Handler for the event : init-edit-mode
(static) onPanelInitialized()
onPanelInitialized - Handler for the event : panel-initialized
Renders the svg and data for the first time. Including :
Renders the svg and data for the first time. Including :
- Create a first instance of the color scale
- Load and append it to the specified element by the panelDivId identyfier
- Create an event for rendering the data over the svg
(static) onRender()
onRender - Handler for the event : render
Requires of an element containing the svg to update based on the data
Requires of an element containing the svg to update based on the data
(static) renderSala(target, data)
renderSala - Renders data on the svg resource
Color applied to each element specified is provided by the function loaded in scaleColor.
Color applied to each element specified is provided by the function loaded in scaleColor.
Parameters:
| Name | Type | Description |
|---|---|---|
target |
type | DOM element from which it hangs the svg |
data |
type | TimeSeries processed data, in the form of pairs [metric, value] |