Style views
Permission: Settings management
Style view is a simple configuration object which stores specific style settings from tab Style in visualization. Every style view object defines which style mappers (and also other styling properties) should by applied when user chooses particular view so the user can easily switch between views to visually compare patterns in the data. Defined style views are listed in the menu "View" in visualization (in the top toolbox with buttons).
Style views setting is a collection of these style view objects.
Configuration
-
Left menu - settings
-
In panel "Settings list" use icon "Update" for setting "STYLE_VIEWS".
-
Enter JSON configuration and confirm by pressing "Save" button.
Default configuration
Default configuration contains no views.
-
Left menu - settings
-
In panel "Settings list" use icon "Update" for setting "STYLE_VIEWS".
-
Press button "Default" and store by pressing button "Save".
Automatic configuration
Automatic configuration contains no views. You can create appropriate mappers for users during administration process.
-
Left menu - settings
-
In panel "Settings list" use icon "Update" for setting "STYLE_VIEWS".
-
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:
[
{
"id":"1",
"label":"Outages",
"view":{
"nodes":{
"style":"color",
"font_size":"_default_",
"nodeColor":{
"id":"1"
},
"nodeShape":{
"id":"6"
},
"nodeSize":{
"id":"3"
},
"nodeIcon":{
"id":"2"
}
},
"edges":{
"style":"notMerged",
"font_size":"_default_",
"edgeColor":{
"id":"5"
},
"edgeType":{
"id":"9"
},
"edgeWidth":{
"id":"4"
}
}
}
}
]
Explanation of JSON properties:
Property |
Values |
Default |
Description |
Usage |
id MANDATORY |
String |
|
Style view identification. Id can't start with space " " or exclamation mark "!". It's used for internal referencing purposes. |
Visualization |
label MANDATORY |
String |
|
View name used in GUI. |
Visualization |
view MANDATORY |
Object |
|
Contains two objects with style settings for nodes and relationships. |
Visualization |
view.nodes MANDATORY |
Object |
|
View definition object for nodes. |
Visualization |
view.nodes.style MANDATORY |
String |
"color", "icon", "default" |
Defines which styling type for nodes will be activated. Current styling type is indicated by Node style switch on the Style tab in visualization. |
Visualization |
view.nodes.font_size |
null, undefined, Number, "_default_" |
|
Font size (number) for node titles in visualization. If the value is not defined or set to null then font size is not affected by view switching. If set to "_default_" then internal default font size is used. |
Visualization |
view.nodes.nodeColor |
Object |
Definition of node color styling. This object contains only property id which is the ID of style mapper which should be used when user applies this view to visualization. When not defined or set to null then the default styles are applied. |
Visualization |
|
view.nodes.nodeShape |
Object |
Definition of node shape styling. This object contains only property id which is the ID of style mapper which should be used when user applies this view to visualization. When not defined or set to null then the default styles are applied. |
Visualization |
|
view.nodes.nodeSize |
Object |
Definition of node size styling. This object contains only property id which is the ID of style mapper which should be used when user applies this view to visualization. When not defined or set to null then the default styles are applied. |
Visualization |
|
view.nodes.nodeIcon |
Object |
Definition of node icon styling. This object contains only property id which is the ID of style mapper which should be used when user applies this view to visualization. When not defined or set to null then the default styles are applied. |
Visualization |
|
view.edges MANDATORY |
Object |
|
View definition object for relationships. |
Visualization |
view.edges.style MANDATORY |
String |
"merged", "notMerged" |
Defines which styling type for relationships will be activated. Current styling type is indicated by Edge style switch on the Style tab in visualization. |
Visualization |
view.edges.font_size |
Number or String |
|
Font size (number) for relationship titles in visualization. If the value is not defined or set to null then font size is not affected by view switching. If set to "_default_" then internal default font size is used. |
Visualization |
view.edges.edgeColor |
Object |
Definition of relationship color styling. This object contains only property id which is the ID of style mapper which should be used when user applies this view to visualization. When not defined or set to null then the default styles are applied. |
Visualization |
|
view.edges.edgeType |
Object |
Definition of relationship type styling. This object contains only property id which is the ID of style mapper which should be used when user applies this view to visualization. When not defined or set to null then the default styles are applied. |
Visualization |
|
view.edges.edgeWidth |
Object |
Definition of relationship width styling. This object contains only property id which is the ID of style mapper which should be used when user applies this view to visualization. When not defined or set to null then the default styles are applied. |
Visualization |