Assign colours to catgeories


(W1697622) #1

I have made this script which uses the data of planning applications in London. I have mapped them to longitude and latitude provided, then the length of each line represents the total floor area of the building the application is relevant to.

One other bit of data I would like to add is the status of construction which is determined by ‘Started’, ‘Not started’ or ‘Completed’. I would like to assign a different colour to the lines for each one.

I have sorted them by list length but am unsure how to connect them to the lineSDL for this.Planning permissions plotted.gh (20.4 KB)


(Amir Touhidi) #2

you forgot to include/internalize your file. anyway, try this:

that’s an expression plugged into a custom preview.