Closed finnlewis closed 4 months ago
On this one, it's the views chart label is set to 'surname' .Changing this to 'party' fixes it. I guess the chart can't deal with an empty label (surname) field.
https://localgov.ddev.site/admin/structure/views/view/localgov_election_area_results/edit/block_1
gives:
The party field is the only field that is required on the candidate.
When we pass the chart an empty field for a label, the render breaks, so we need to be sure the label is present.
So it makes sense to use the party field.
I've updated that view to add another party field, rewriting it to include the candidate name if present.
How does this look?
Fixed, thanks @chriswales95
Creating an election with real data, from 2019:
However, I don't have the candidate names, so try removing the surname from all candidates:
Add surnames for labour and conservative:
I guess we need to make the chart rendering robust enough to no require a surname.