I am using ArcGIS JavaScript API 4.12 version.
I would like to initialize UniqueValue renderer with 3 fields. But .createRenderer supporting only one field.
<SPAN class="comment token">// visualization based on categorical field </SPAN>
<SPAN class="keyword token">var</SPAN> typeParams <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">{</SPAN>
layer<SPAN class="punctuation token">:</SPAN> layer<SPAN class="punctuation token">,</SPAN>
basemap<SPAN class="punctuation token">:</SPAN> map<SPAN class="punctuation token">.</SPAN>basemap<SPAN class="punctuation token">,</SPAN>
field<SPAN class="punctuation token">:</SPAN> <SPAN class="string token">"Party"</SPAN>
<SPAN class="comment token">// field2: "State", // it is not supporting</SPAN>
<SPAN class="comment token">// field3: "County" // it is not supporting</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">// when the promise resolves, apply the visual variables to the renderer </SPAN>
typeRendererCreator<SPAN class="punctuation token">.</SPAN><SPAN class="token function">createRenderer</SPAN><SPAN class="punctuation token">(</SPAN>typeParams<SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">.</SPAN><SPAN class="token function">then</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">function</SPAN><SPAN class="punctuation token">(</SPAN>response<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
layer<SPAN class="punctuation token">.</SPAN>renderer <SPAN class="operator token">=</SPAN> response<SPAN class="punctuation token">.</SPAN>renderer<SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Any advise please.