This tackles a number of problems with the 'Generation Split' pie chart and the corresponding 'Generation Total' line graph as described in #79.
Main changes:
I have split the pie into two sub-pies. The left sub-pie shows positive contributions and the right sub-pie shows negative contributions. The size of the right sub-pie is dynamically adjusted to reflect the relative proportion between negative and positive contributions.
The colour scheme for the two charts is now fixed, which ensures that the two charts match and prevents colors changing between timepoints. I am also fixing the ordering in the pie charts.
I am now hiding numbers when the segment is too small to display the number within the segment (previously it would display the numbers outside the pie). I am also changing the numbers on the pie from percentages to GW, which allows for better comparison between the two sub-pies.
Phil will need to make the final call on things like axis labels and titles, but we can save up these kinds of issues to discuss in the new year.
Before
After
Close #79
Type of change
[x] New feature (non-breaking change which adds functionality)
[ ] Optimization (non-breaking, back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (whatever its nature)
Key checklist
[x] All tests pass (python -m pytest)
[x] Pre-commit hooks run successfully (pre-commit run --all-files)
Description
This tackles a number of problems with the 'Generation Split' pie chart and the corresponding 'Generation Total' line graph as described in #79.
Main changes:
Phil will need to make the final call on things like axis labels and titles, but we can save up these kinds of issues to discuss in the new year.
Before
After
Close #79
Type of change
Key checklist
python -m pytest
)pre-commit run --all-files
)