Im trying to use a renderer and a legend on data from a featureSet, it displayes symbols and popups but the renderer failes.
the data comes from a featureLayer but I display it with view.graphics so I think that may be the problem. Still I cant find an add graphic(maybe addAttachment but I could not make it work) .
this is my code:
https://codepen.io/segev-salman/pen/MdmrLB
Do I need a new featureLayer or can I use the one with the url to the service to be displayed with the renderer with queryed data and if not do i really have to insert the data manually after the query does it just bring me back graphics or changes the layer?