Change Color in URL for Word Cloud

I am embedding a word cloud in HTML. Here is one of my current attempts at doing so:

<img
        src={
          "https://quickchart.io/wordcloud" +
          "?text=" + data.individual.words.join(",") +
          "&color="+
          encodeURIComponent(JSON.stringify(`#ec3750
#ff8c37
#f1c40f
#33d6a6
#5bc0de
#338eda
#a633d6`.split('\n')))+
          "&useWordList=true" +
          "&width=400" +
          "&height=600"
        }
      />

I have also tried to do so by using &color=[hex,hex,hex] and &color=["hex","hex","hex"] I have also tried both with RGB and RGBa instead of hex. The color never changes and remains the default.

Hi @tgl,

Looks like the parameter name is colors, not color :slight_smile: See the docs here: Word Cloud API | QuickChart

Ian