Need some help for a dataviz

Iโ€™m working on a exploratory notebook about members of European Parliament.

I have an interactive approach with the possibility to show some feature (gender distribution, occupational distribution, citizenship distribution) across several dimension such as parliamentary group or constituency.

I guess the cell plot is the better representation for this kind of data.

However, the rendering of the cell plot isnโ€™t very good. See here for example ๐Ÿ‡ช๐Ÿ‡บ Members of European Parliament ๐Ÿ‡ช๐Ÿ‡บ / PAC | Observable

If you have any advice to improve the chart, it would be great.

One approach to improve the labels could be to place them left aligned and rotate them:

  marginLeft: 10,
  marginTop: 100,
  marginRight: 250,
  x: {
    axis: "top",
    tickRotate: -35,
  y: {
    grid: true,
    axis: "right",

1 Like