Closed dakota-kallas closed 5 months ago
Is there any chance you could add the ability to set the segment width to match the scale percentage? For example, here is a segments array: [ { scale: 0.1, filledColor: '#FF746E', emptyColor: '#F2F3F5', data: { label: 'Red' }, }, { scale: 0.15, filledColor: '#F5E478', emptyColor: '#F2F3F5', data: { label: 'Yellow' }, }, { scale: 0.5, filledColor: '#78F5CA', emptyColor: '#F2F3F5', data: { label: 'Green' }, }, { scale: 0.15, filledColor: '#F5E478', emptyColor: '#F2F3F5', data: { label: 'Yellow' }, }, { scale: 0.1, filledColor: '#FF746E', emptyColor: '#F2F3F5', data: { label: 'Red' }, }, ];
[ { scale: 0.1, filledColor: '#FF746E', emptyColor: '#F2F3F5', data: { label: 'Red' }, }, { scale: 0.15, filledColor: '#F5E478', emptyColor: '#F2F3F5', data: { label: 'Yellow' }, }, { scale: 0.5, filledColor: '#78F5CA', emptyColor: '#F2F3F5', data: { label: 'Green' }, }, { scale: 0.15, filledColor: '#F5E478', emptyColor: '#F2F3F5', data: { label: 'Yellow' }, }, { scale: 0.1, filledColor: '#FF746E', emptyColor: '#F2F3F5', data: { label: 'Red' }, }, ];
I want the first segment's width to only be 10% of the segmented arc, the 2nd segment to be 25% of the width of the total segmented arc, etc.
Is this something that could be implemented?
I made pull request #83 for this
Is there any chance you could add the ability to set the segment width to match the scale percentage? For example, here is a segments array:
[ { scale: 0.1, filledColor: '#FF746E', emptyColor: '#F2F3F5', data: { label: 'Red' }, }, { scale: 0.15, filledColor: '#F5E478', emptyColor: '#F2F3F5', data: { label: 'Yellow' }, }, { scale: 0.5, filledColor: '#78F5CA', emptyColor: '#F2F3F5', data: { label: 'Green' }, }, { scale: 0.15, filledColor: '#F5E478', emptyColor: '#F2F3F5', data: { label: 'Yellow' }, }, { scale: 0.1, filledColor: '#FF746E', emptyColor: '#F2F3F5', data: { label: 'Red' }, }, ];
I want the first segment's width to only be 10% of the segmented arc, the 2nd segment to be 25% of the width of the total segmented arc, etc.
Is this something that could be implemented?