Closed donmccurdy closed 4 months ago
Totals | |
---|---|
Change from base Build 9414264087: | -0.009% |
Covered Lines: | 2804 |
Relevant Lines: | 3627 |
Totals | |
---|---|
Change from base Build 9414264087: | -0.009% |
Covered Lines: | 2804 |
Relevant Lines: | 3627 |
Visit the preview URL for this PR (updated for commit 4916345):
https://cartodb-fb-storybook-react-dev--pr877-donmccurdy-fix-l-5w4wmit6.web.app
(expires Wed, 19 Jun 2024 14:32:35 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 517cc4d31d7e09cf277774e034094b67c301cd4c
Totals | |
---|---|
Change from base Build 9414264087: | -0.009% |
Covered Lines: | 2804 |
Relevant Lines: | 3627 |
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 9414264087: | -0.004% |
Covered Lines: | 2805 |
Relevant Lines: | 3628 |
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 9414264087: | -0.004% |
Covered Lines: | 2805 |
Relevant Lines: | 3628 |
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Totals | |
---|---|
Change from base Build 9414264087: | -0.004% |
Covered Lines: | 2805 |
Relevant Lines: | 3628 |
Description
Shortcut: Story 415171, URL redacted.
LegendProportion displays the legend for point scaling, and sometimes calculates the scale incorrectly. In the image below, note that the 'max' is smaller than the second number, and the 'min' is larger than the third.
The cause is a typo, we should be using
max - min
instead ofmax + min
to calculate the interval over which the two middle steps are interpolated. With this bug, the steps were calculated correctly only whenmin
was zero.Additionally, the visual sizes of the circles in the legend panel are hard-coded to
[3, 6, 9, 12]
, representing two evenly-spaced steps between the min and max. However, our implementation would have generated different steps givenmin=3, max=12
as input, because it divided the interval by 4, not 3.Type of change
Acceptance
Please describe how to validate the feature or fix
Link C4R into Builder
Create a new map
Add SQL query
Set point layer to style radius by
lat
columnOpen legend, observe steps are correctly spaced