title: Plotly python histogram add custom colors to distinct values
body: <p>I have a dataframe, with 4 distinct values in a column, for each value I need to set the custom colors.</p>
  <p>Below is the sample data</p>
  <pre><code>val,cluster
  118910.000000,3
  71209.000000,2
  25674.666667,0
  109267.666667,3
  8.000000,1
  </code></pre>
  <p>Below is the code.</p>
  <pre><code>fig = px.histogram(types, x=&quot;val&quot;,color='cluster')
  fig.show()
  </code></pre>
  <p>types is the dataframe name from data given</p>
  <p>When I figureI get default colors. Instead I need to get</p>
  <p>0:red</p>
  <p>2:blue</p>
  <p>1:purple</p>
  <p>3:green</p>
  <p>How can I set the custom colors in python plotly for histogram</p>
  <p>Can anyone help on this pls</p>