How do I change the length or strength of connections?
Last updated
Last updated
By default our layout algorithm treats all connections the same (same spring strength and length). If you'd like to change the visual look of connections, you have multiple options, as outlined below.
To change the thickness of the connections, follow these steps:
Click on the settings icon on the right side of the map to open the Basic Editor.
Choose "Decorate Connections" to open the decorations editor.
Set the dropdown at the top to "Decorate all connections" (or use the other options to specify which connections you'd like to target)
Use the slider to change the connection manually, and click Done at the bottom.
Follow the steps above, but in step 4 check the "Change size" checkbox and then choose "Scale connection widths by field" to scale the thickness based on a field.
Select the attribute you want to scale by. Please note that the field must have the Type set to Number or Currency for the option to show up. Learn how to change Field Type here.
Set the scale you'd like to use and click Done!
If you'd like to modify connections to be shorter or longer connections based on a given connection field, you can do so by adding the code below (example based on using a quantitative "strength" field).
This works for connection-length
as well.
You can also use this to assign specific strength and size values based on qualitative values for connections: