title: svg multiple color on circle stroke
body: <p>I want to create a rainbow circle, like the picture below:</p>
  <p><a href="https://i.stack.imgur.com/OQ1U7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OQ1U7.png" alt="enter image description here" /></a></p>
  <p>How can I draw the curved and multiple color stop gradient?</p>
  <p>Here's my current code:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;svg width="500" height="500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;
      &lt;defs&gt;
      &lt;linearGradient id="test"&gt;
      &lt;stop offset="0%" stop-color="#f00"/&gt;
      &lt;stop offset="100%" stop-color="#0ff"/&gt;
      &lt;/linearGradient&gt;    
      &lt;/defs&gt;    
      &lt;circle cx="50" cy="50" r="40" fill="none" stroke="url(#test)" stroke-width="6"/&gt;    
  &lt;/svg&gt;</code></pre>
  </div>
  </div>
  </p>