This PR adds in the collateral composition section, to achieve the new pie chart, the old manual one was swapped out for a chartjs 2 option.
The reason for this was mostly to do with the drawing of the borders as well as the rounding of the segments, while this is technically manually achievable through draw ordering, its far to resistant to change or fixes, and as such, using a library which has these features out the box makes sense.
However the default spacing logic is a little wobbly, as such the spacing is achieved with injected invisible segments instead
Description
This PR adds in the collateral composition section, to achieve the new pie chart, the old manual one was swapped out for a chartjs 2 option.
The reason for this was mostly to do with the drawing of the borders as well as the rounding of the segments, while this is technically manually achievable through draw ordering, its far to resistant to change or fixes, and as such, using a library which has these features out the box makes sense.
However the default spacing logic is a little wobbly, as such the spacing is achieved with injected invisible segments instead
Related tickets