This module provides submodules, content types, views and configuration that allow the reporting of election results for the LocalGov Drupal distribution.
This is because of dodgy code I wrote a while back I think.
Due to how charts js works, the labels, data, and background colour arrays are seperate and are not bundled together. We match them to the users colours by comparing the labels and whatnot. The colours are injected from the Drupal backend into the frontend.
Due to the faulty logic, the background colour array wasn't kept in line with the data and labels array. This meant that they became out of sync if there was a blank entry.
This is because of dodgy code I wrote a while back I think.
Due to how charts js works, the labels, data, and background colour arrays are seperate and are not bundled together. We match them to the users colours by comparing the labels and whatnot. The colours are injected from the Drupal backend into the frontend.
Due to the faulty logic, the background colour array wasn't kept in line with the data and labels array. This meant that they became out of sync if there was a blank entry.
PR incoming.