You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable the usage of custom category bar label texts, instead of just percentage values.
For example, the following component
<CategoryBarclassName='mt-4'values={[25,25,25,25]}colors={['sky','lime','orange','rose']}markerValue={36}labels={[12.5,15,17.5,20,22.5]}// suppose this new property is added/>
may display
What does the proposed API look like?
Usage:
<CategoryBarclassName='mt-4'values={[25,25,25,25]}colors={['sky','lime','orange','rose']}markerValue={36}labels={[12.5,15,17.5,20,22.5]}// suppose this new property is added/>
Where the type of labels could be specified with
typeLabelType=null|string|number;// null indicates the label should always be omitted from displayingtypeLabelsType=LabelType[];
Also, the condition values.length === labels.length - 1 might be forced
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
Enable the usage of custom category bar label texts, instead of just percentage values.
For example, the following component
may display
What does the proposed API look like?
Usage:
Where the type of labels could be specified with
Also, the condition
values.length === labels.length - 1
might be forcedThe text was updated successfully, but these errors were encountered: