@settings reference

In the Advanced Editor, the @settings block can be used to tweak default settings and add all kinds of powerful features to your view.

The @settings block supports all decoration properties listed in the property reference, and also allows you to preface each property with element-, connection-, or loop- to set default decorations for each group.

But, @settings also supports its own list of exclusive properties. The table below lists all properties that can be used exclusively inside an @settings block, describes their effect on the view, and lists valid values for each property (when there are multiple valid values, we've listed them as separate snippets of inline code).

There are just few more things you should know about the valid values listed below:

Where you see... You can use...
selector Any selector
color Any CSS web color or hex color code
number Any number
'field name' The name of any of your fields, wrapped in single or double quotes
element type Any text/string value

All values are unitless.

Supported properties

Property Description Possible values
background-color Sets the canvas' background color
color
bridge Activates bridging. See the bridge guide for more information.
element-selector
cluster Activates clustering. See the cluster guide for more information.
'field name'
element-selector by 'field name'
element-selector by 'field name' as 'element type'
culling Determines whether elements and connections are hidden when the reader zooms in very close
on
off
focus Activates focus. See the focus guide for more information.
selector out number
geo-location Sets the field that will be used to geo-locate elements
'field name'
ignore Ignores a selection. See the filter guide for more information.
selector
include Includes a selection. See the filter guide for more information.
selector
layout Sets the layout type
force
static
scatter
layout-bounds-xmax Sets a maximum x coordinate that grid and guide lines can extend to
number
layout-bounds-xmin Sets a minimum x coordinate that grid and guide lines can extend to
number
layout-bounds-ymax Sets a maximum y coordinate that grid and guide lines can extend to
number
layout-bounds-ymin Sets a minimum y coordinate that grid and guide lines can extend to
number
layout-gravity Sets the gravity for the force-directed layout
number
layout-grid Determines whether a grid will be shown
on
off
layout-grid-color Sets the color of the grid
color
layout-grid-offset Sets the space between grid lines
number
layout-grid-width Sets the thickness of grid lines
number
layout-guide-color Sets the color of guide lines
color
layout-guide-width Sets the thickness of guide lines
number
layout-guides Sets the x or y coordinate for each guide line
x(number)
y(number)
layout-particle-charge Sets the particle charge for the force-directed layout
number
layout-preset Chooses a preset version of the force-directed layout
auto
dense
hairball
layout-spring-length Sets the spring length for the force-directed layout
number
layout-spring-strength Sets the spring strength for the force-directed layout
number
layout-x Sets the field used to determine elements' x coordinate in the scatter layout
'field name'
layout-x-multiplier Sets a number that will be multiplied by each elements layout-x field to determine their final x coordinate
number
layout-y Sets the field used to determine elements' x coordinate in the scatter layout
'field name'
layout-y-multiplier Sets a number that will be multiplied by each elements layout-y field to determine their final y coordinate
number
quality Sets the render quality
fast
best
renderer Chooses which rendered will be used
canvas
webgl
showcase Activates showcase. See the showcase guide for more information.
selector
template Chooses a template
custom
geo
sna
stakeholder
systems
theme Sets the view's overall theme
light
dark

edit this page

results matching ""

    powered by

    No results matching ""