How to change color of bar chart?

LilC
LilC New Altair Community Member
edited November 2024 in Community Q&A
Hi guys,
When I use a bar chart for visualization, is there a setting that could allow me to change color of the bars?
Thanks

Best Answers

  • jacobcybulski
    jacobcybulski New Altair Community Member
    Answer ✓
    The plot style shows a Color Palette. You can grab any of the colors and move it. The color which is shown first defines the color of your bars. In other charts which use several colors, the colors will be used from left to right, so rearrange the colors to your liking.
  • Marco_Boeck
    Marco_Boeck New Altair Community Member
    Answer ✓
    Hi,

    And in addition to what jacob has already said, you can left-click on any color to change it to anything else, you can add new colors into the palette, and you can remove colors from the palette by right-clicking on them.

    Regards,
    Marco

Answers

  • jacobcybulski
    jacobcybulski New Altair Community Member
    Answer ✓
    The plot style shows a Color Palette. You can grab any of the colors and move it. The color which is shown first defines the color of your bars. In other charts which use several colors, the colors will be used from left to right, so rearrange the colors to your liking.
  • Marco_Boeck
    Marco_Boeck New Altair Community Member
    Answer ✓
    Hi,

    And in addition to what jacob has already said, you can left-click on any color to change it to anything else, you can add new colors into the palette, and you can remove colors from the palette by right-clicking on them.

    Regards,
    Marco