title: Dash plotly / CSS. customize marker style - Gradient color for bar chart
body: <p>I would appreciate it if someone can help me.</p>
  <p>I would like to have a gradient for my bar chart instead of one color.
  something like this:</p>
  <p><img src="https://i.stack.imgur.com/Pvy07.png" alt="enter image description here" /></p>
  <pre><code>go.Bar( x=df2.date,y=df2.ans,yaxis='y1', textposition='auto', marker={'color':'##7FFF00' )
  </code></pre>
  <p>I have also tried to do it with</p>
  <pre><code>marker={'color':list(range(-10,10))
  </code></pre>
  <p>but it gives me a general gradient from right to left.</p>
  <p>I have also tried to add css to asset:</p>
  <pre><code>.grad{ color: linear-gradient(to right, red , yellow)}
  </code></pre>
  <p>but I couldn't manage to use it.</p>
  <p>Looking forward to your help. Thank you</p>