Widgets
Permission: Settings management
Widgets setting is a collection of widget configuration objects. With these configuration objects you can enable and configure widgets included in Visualization.
There are several internal widgets included in Graphlytic installation which you can use out of the box. See below for a full list of internal widgets and their configuration options.
Configuration
-
Left menu - settings
-
In panel "Settings list" use icon "Update" for setting "WIDGETS".
-
Enter JSON configuration and confirm by pressing "Save" button.
Default configuration
Default configuration contains no enabled widgets.
-
Left menu - settings
-
In panel "Settings list" use icon "Update" for setting "WIDGETS".
-
Press button "Default" and store by pressing button "Save".
Automatic configuration
Automatic configuration contains no enabled widgets. You have to configure widgets manually.
-
Left menu - settings
-
In panel "Settings list" use icon "Update" for setting "WIDGETS".
-
Press button "Automatic", wait for generator to generate JSON and store by pressing button "Save".
Description of configuration
Configuration is entered as JSON. Example of JSON:
[
{
"widget":"outagePropagation",
"config":{
"outageProp":"outageDependency",
"outageValue":"yes",
"thresholdProp":"outageThreshold"
}
},
{
"widget":"sumReport"
}
]
Explanation of JSON properties:
Property |
Values |
Default |
Description |
Usage |
widget MANDATORY |
String |
|
ID of widget you want to enable (include) in Visualization. |
Visualization |
config |
Object |
|
Optional object which will be passed to widget with <widget>.configure(config) method immediately after widget is included. Structure of this object vary for each widget. Please see documentation of particular widget for more information about it's configuration options. |
Visualization |
Internal Widgets
Widget ID |
Configuration |
Description |
|||||||||
sumReport |
|
Demo of a widget which acts on set of selected nodes, calculates sum of one property across these nodes and result is presented to user in the form of a table in modal window. Example of configuration: { "widget" : "sumReport" , "config" :{ "valueProp" : "costs" } }
|
|||||||||
outagePropagation |
|
This widget ads the "outage propagation button" to Tools panel in Visualization for simulationg outage propagation in graph. Usage: select one or more nodes which are outage starting points and click the outage propagation button. Widget calculates based on starting points and configuration option the nodes and relationships which propagates outage in this step and selects them. You can press the outage propagation button multiple times and in every step the same calculation is made so you can observe the outage propagation effect in graph. Example of configuration: { "widget" : "outagePropagation" , "config" :{ "outageProp" : "outageDependency" , "outageValue" : "yes" , "thresholdProp" : "outageThreshold" } } |
|||||||||
geoLayout |
|
This widget ads the "geo layout button" to Tools panel in Visualization. With this button you can layout the nodes according to their latitude and longitude values (these values has to be stored in database properties of each node). Usage: press the geo layout button to apply the layout. Example of configuration: { "widget" : "geoLayout" , "config" :{ "latitudeProperty" : "latitude" , "longitudeProperty" : "longitude" } }
|