turbot / powerpipe

Powerpipe: Dashboards for DevOps. Visualize cloud configurations. Assess security posture against a massive library of benchmarks. Build custom dashboards with code.
https://powerpipe.io/
GNU Affero General Public License v3.0
296 stars 21 forks source link

Donut chart not rendering correctly on boolean value #433

Open ashishkurian opened 4 months ago

ashishkurian commented 4 months ago

Describe the bug Donut chart not rendering as expected when the group by variable is a boolean

Powerpipe version (powerpipe -v) Powerpipe v0.4.0

To reproduce

I am using the below chart definition to create a chart. Howver, it is not producing the expected result.

chart { type = "donut" width = 2 title = "RDS Multi AZ" sql = <<-EOT select multi_az, count(*) from iaws_all.aws_rds_db_instance group by multi_az; EOT }

However, if I use the same chart but on another variable with the value of string type, it produces the expected result.

chart { type = "donut" width = 2 title = "EBS Volume type" sql = <<-EOT select volume_type, count(*) from iaws_all.aws_ebs_volume group by volume_type EOT }

image

If I change the chart type to bar or column type, it produces the expected result

image

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

pskrbasu commented 4 months ago

Hi @ashishkurian, thanks for raising this. We will take a look!

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.