I have been trying to color individual colors graphics which are added using client-side graphics in the feature layer. but the symbol property of the graphic is overwritten by the renderer property of the feature layer.
I have taken the source as the array of graphics with a symbol property of simpleMarkerSymbol . simpleMarkerSymbol Provides different colors to the symbol based on the values it gets from the backend. So I want to color individual graphics once the cluster_number is equals to 1.
Features in a FeatureLayer can only be symbolized by the renderer of the FeatureLayer.
We have a guide on visualization that might help.
https://developers.arcgis.com/javascript/latest/visualization/
From your description, it sounds like you might want to use a Unique Value Renderer.
https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles/unique-types/