Skip to content

Commit

Permalink
feat: align colorbar for categorical color column
Browse files Browse the repository at this point in the history
  • Loading branch information
mbelak-dtml committed Nov 1, 2023
1 parent 2502938 commit 493fee3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions edvart/report_sections/multivariate_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,13 @@ def parallel_coordinates(
"len": min(40 * len(categories), 300),
}
)
# Align the colorbar with the categories
line.update(
{
"cmin": -0.5,
"cmax": len(categories) - 0.5,
}
)
else:
line = None

Expand Down Expand Up @@ -817,6 +824,13 @@ def parallel_categories(
"len": min(40 * len(categories), 300),
}
)
# Align the colorbar with the categories
line.update(
{
"cmin": -0.5,
"cmax": len(categories) - 0.5,
}
)
else:
line = None

Expand Down

0 comments on commit 493fee3

Please sign in to comment.