tremorlabs / tremor

React components to build charts and dashboards
https://tremor.so
Apache License 2.0
15.53k stars 450 forks source link

[Feature]: CategoryBar values are not limited to summing to 1 or 100. #1035

Closed lcandy2 closed 1 week ago

lcandy2 commented 3 weeks ago

What problem does this feature solve?

Sometimes the benchmarks don't always sum to 100 or 1, they can be greater than 100, or less than 100, which I think is a very common need.

CleanShot 2024-05-08 at 14 28 24@2x

As shown above, the range of the animal's weight(shown as the Chinese character “体重” in the screenshot) should be in a certain range that is normal, and to achieve this, the values sum may be greater than 100.

CleanShot 2024-05-08 at 14 33 13@2x Another example is the length of the animal (shown in the screenshot as the Chinese character “体斜长”), which may be in a range of up to 14.5, and again, the sum of values may be less than 100 (and more than 1).

What does the proposed API look like?

The API doesn't need to be changed, just don't assume the max sum of values is 100.

github-actions[bot] commented 1 week ago

:tada: This issue has been resolved in version 3.17.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: