Skip to main content
konduruc733182
Inspiring
Aug 24, 2024 2:00 PM UTC

 Hello [mention:b0a0f9da16b441e8aa0eb47e9bf95720:e9ed411860ed4f2ba0265705b8793d05] ,

There is no parameter that accepts this shape as Kumar mentioned. But you can use a card layout and try. The below is something that will give what you want on a progress bar.

{
  a!cardLayout(
    padding: "NONE",
    shape: "ROUNDED",
    marginAbove: "NONE",
    marginBelow: "NONE",
    contents: a!progressBarField(
      labelPosition: "COLLAPSED",
      percentage: 75,
      marginAbove: "NONE",
      style: "THICK"
    )
  )
}

7 replies

kumara0180
Participating Frequently
Aug 24, 2024 2:29 AM UTC

If they don’t have a parameter to accept the shape, then it would be not possible to change the shape of corners like we have for charts and buttons 

konduruc733182
Inspiring
Aug 24, 2024 2:00 PM UTC

 Hello [mention:b0a0f9da16b441e8aa0eb47e9bf95720:e9ed411860ed4f2ba0265705b8793d05] ,

There is no parameter that accepts this shape as Kumar mentioned. But you can use a card layout and try. The below is something that will give what you want on a progress bar.

{
  a!cardLayout(
    padding: "NONE",
    shape: "ROUNDED",
    marginAbove: "NONE",
    marginBelow: "NONE",
    contents: a!progressBarField(
      labelPosition: "COLLAPSED",
      percentage: 75,
      marginAbove: "NONE",
      style: "THICK"
    )
  )
}

stefanhelzle0001
Brainy
Aug 24, 2024 2:05 PM UTC

The trick here is to make "padding" none. Then the rounded shape of the card hides the square edges of the enclosed component. Adjust the margins of the inner component to remove any remaining space.

pearlf4501
New Participant
Aug 26, 2024 3:13 PM UTC

Thank you Konduru and Stefan, it worked perfectly for the progress bar!
However, I am struggling to round the corners of the bars in a bar chart. It seems I cannot get rid of the large space that appears above the bar. Any help would be greatly appreciated!