Customization of the color bars in Plotly's parallel_categories diagram

Is it possible to customize the bars in the parallel category diagram? Specifically:

  • The order of the colour sometimes appears not in order within the same category (see the example figure here, where you can clearly see the dark line appear in the middle, next to Coderre, and it looks very out of place). Is there any trick for forcing them to appear in order?
  • Also, is it possible to get rid of the borders in the color bars inside the plot? The black borders will make them appear darker if the figure is small.

Here is the MWE:

import pandas as pd
import as px

df =
fig = px.parallel_categories(df, color="total", color_continuous_scale=px.colors.sequential.Inferno)