Skip to content

Checkerboard relative scale is percentage rather than absolute-value based #45789

@sgress454

Description

@sgress454

Fleet versions 4.85.0

Web browser and operating system:


💥  Actual behavior

Charts that are colored using a relative scale are doing so based on the percentage of hosts in a bucket, rather than the number of hosts. So in certain cases where the numbers may vary a good amount but they still represent a small percentage of the whole, the chart may only use one or two colors.

🛠️ Expected behavior

A relative chart should always show all colors as long as there are at least 5 distinct values in the chart.

🧑‍💻  Steps to reproduce

  • Start an instance with 10 hosts, and use the chart-backfill tool to backfill uptime data for the last 30 days.
  • Add an additional 990 hosts to the instance without backfilling
  • Note that the "hosts online" chart is all one color (since every square will represent 1% (rounded up) of the 1000 hosts)
Image

Metadata

Metadata

Assignees

Labels

#g-first-impressionsFirst impressions working groupbugSomething isn't working as documented~released bugThis bug was found in a stable release.

Type

No type
No fields configured for issues without a type.

Projects

Status

🥚 Ready

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions