Select to view content in your preferred language

Pro: Symbolise line using gradient along length

8784
20
09-24-2020 11:08 PM
JohnWatt
Frequent Contributor

It would be great if a colour gradient could be rotated along a line symbol's length.  There are a few 'nearly there' workarounds, but currenty Pro can only apply a gradient through the thickness of the line - not from end to end.

 

Eg I can use a gradient stroke through the line like below, but not from end to end like this ↓

 

 

 

From discussion: Line gradient symbology with direction? 

20 Comments
wayfaringrob

I've got elevation values for the start (F_ZLEV) and end (T_ZLEV) of my roadway segments - I would use a gradient stroke like this to symbolize the elevation change of ramps more effectively.

It would also be neat to see other effects - like buffer - 'taper' or vary along the length of the line in a similar manner.

KoryKramer

@wayfaringrob see https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/symbol-effects.htm#ESRI_SECTI... for currently available symbol effects which include buffer and taper!

VojtěchBlažek

@KoryKramer @wayfaringrob 

It's good to know that taper is possible, but linear gradient fill, like we use in this map (https://www.tandfonline.com/doi/full/10.1080/17445647.2021.1937730)  is possible only in QGIS, so far I know.

Line flows - Linear gradient

KathrynDoh

This would be helpful. Kind of like the directionality in the arrow line options, but with color. 

 

KathrynDoh_0-1651084183715.png

 

KoryKramer

Thank you for the comment @KathrynDoh    I took a look and it doesn't appear that you added your kudos to the idea. While comments are important, kudos (the number of votes) that an idea receives is one of the primary pieces of data that we use to determine traction and trends as we monitor idea activity over time.

Please see https://community.esri.com/t5/custom/page/page-id/arcgis-ideas for a high level overview of how ArcGIS Ideas works. For more details, see Frequently Asked Questions about ArcGIS Ideas 

Thank you for your participation in the community and for helping us prioritize future development efforts for ArcGIS Pro.

KathrynDoh

Done, thanks @KoryKramer 

elmort
by

Hi all, 

Just wanted to share a solution I found for this issue courtesy of Esri's @WarrenDavison. For full details, you can visit this blog post: https://warrenrdavison.wixsite.com/maps/post/animating-movement-with-arcgis-pro

 

The short version is to use an Arcade Expression with Attribute Driven Symbology.

For convenience, here is the code: 

var geom = Geometry($feature); var partCount = Count(geom.paths); if (partCount == 0){return 0;} var point1 = geom.paths[0][0]; var lastPath = geom.paths[partCount -1] var vertexCount = Count(lastPath); Var point2 = lastPath[vertexCount -1]; return Angle(point1,point2);

For a full video demo, see this video, linked in the blog post: https://www.youtube.com/watch?v=P_Vpdvnx5DA&t=1099s

Hope this is helpful, and thanks, Warren! 

wayfaringrob

@elmort  neat, thanks!

VojtechC

Hi, it's been quiet here for a while. Has anyone seen any progress on this topic? I'd like to create a map similar to this one:

4596736

You can probably see what I'm going for – to create a route map coloured by the current pace/elevation (or whatever) at each point/vertex. Basically, I want to create a map with a gradient symbology along a line that would change color based on, for example, the M-value at each vertex. It's the same idea as @JohnJones described above.

Is it already possible to create something like this in ArcGIS Pro?

LarsArneson

@KoryKramer is there any movement on this? It looks like it was moved to "Under Consideration" in 2020 but I'm not sure where to look to check the current status. Adding a 90° rotation button anywhere in the symbology would likely be found by users looking to achieve the effect.

LarsArneson_0-1717629295256.png