Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.56k stars 793 forks source link

Search: in Record Meter, magnify records if there's a big discrepancy between current records and record limit (e.g. 10 records, 100k limit) #24202

Open bluefuton opened 2 years ago

bluefuton commented 2 years ago

In the event that a user has a very small number of indexed records but a very high record limit (e.g. for Jetpack Complete), it is not possible to see or interact with the existing records:

Screen Shot 2022-05-02 at 16 36 22

In the example above, the record limit has been manually set to 100,000.

We should ensure that each segment on the chart is a minimum length.

bluefuton commented 2 years ago

We thought that minBarLength in chart.js might give us what we were after:

https://www.chartjs.org/docs/2.9.4/charts/bar.html

...but it is producing output like this:

Screen Shot 2022-05-02 at 16 34 00

cc @annacmc