title: Colors within a 'Parcat', with Plotly
body: <p>I had some difficulties giving color to a 'parcat'. My intentions were to have the last diagram displayed as different colors (for each variable a color). To make this happen I've read the particular documentation for the 'parcat'(<a href="https://plotly.com/python/parallel-categories-diagram/#basic-parallel-categories-diagram-with-graphobjects" rel="nofollow noreferrer">plotly.parcat</a>), and have followed the documentation, but I get an error which I can't fix. This is my code:</p>
  <pre><code>import plotly.graph_objs as go
  import pandas as pd
  # Create dimensions
  sex_dim = go.parcats.Dimension(
      values = tips_df['sex'],
      label = &quot;Sex&quot;,
      categoryorder = &quot;category ascending&quot;
  )
  
  smoker_dim = go.parcats.Dimension(
      values = tips_df['smoker'], 
      label = &quot;Smoker&quot;)
  
  day_dim = go.parcats.Dimension(
      values = tips_df['day'], 
      label = &quot;Day&quot;,
      categoryorder = &quot;category ascending&quot;
  )
  
  time_dim = go.parcats.Dimension(
      values = tips_df['time'], 
      label = &quot;Time&quot;,
      categoryorder = &quot;category ascending&quot;
  )
  
  size_dim = go.parcats.Dimension(
      values = tips_df['size'], 
      label = &quot;Size&quot;,
      categoryorder = &quot;category ascending&quot;
  )
  
  quantized_total_bill = go.parcats.Dimension(
      values = tips_df['quantized_total_bill'], 
      label = &quot;Quantized total bill&quot;,
      categoryorder = &quot;category ascending&quot;
  )
  
  quantized_tip = go.parcats.Dimension(
      values = tips_df['quantized_tip'], 
      label = &quot;Quantized tip&quot;,
      categoryorder = &quot;category ascending&quot;, 
      categoryarray=[0, 1, 2],
  )
  
  # Create parcats trace
  color = tips_df.quantized_tip;
  colorscale = [[0, 'lightsteelblue'], [1, 'mediumseagreen'], [2, 'yellow']];
  
  
  
  # Create parcats trace
  
  fig = go.Figure(data = [go.Parcats(dimensions=[sex_dim, smoker_dim, day_dim, time_dim, size_dim,
                                                 quantized_total_bill, quantized_tip],
                                                 line={'color': color, 'colorscale': colorscale})])
  
  fig.update_traces(labelfont_color=&quot;black&quot;)
  
  fig.show()
  </code></pre>
  <p>This is the error that I get:</p>
  <pre><code>ValueError: 
      Invalid element(s) received for the 'color' property of parcats.line
          Invalid elements include: ['Low', 'Low', 'Low', 'Low', 'Low', 'Low', 'Low', 'Low', 'Low', 'Low']
  </code></pre>
  <p>Without specifying the colors, I get this plot, which is correct (as I followed the documentation):
  <a href="https://i.stack.imgur.com/7mxly.png" rel="nofollow noreferrer">Plot</a>, but when I want to add some colors (like the code above), then an error is given.</p>
  <p>I would really appreciate it if someone could help me further, as I don't seem to figure it out, while looking at the documentation.</p>