AnsweredAssumed Answered

Data-driven line thickness in ArcGIS JavaScript API

Question asked by darbariNCSU on Jan 27, 2017

am trying to render a line featurelayer and would like to set the thickness (width) of lines based on one of the attributes, which is a continuous value between 0-1; for example for value of zero the thickness would be 1, for the value of 1 the thickness would be 10, and other values between 0-1 would be proportionally assigned a thickness (width) between 1 to 10. I am looking at this example from ArcGIS JavaScript API 4.2 in which the size of circles are determined based on an attribute. Could we do a similar thing for lines' thickness? In visualvariables what value should I give to the type?