election-live
election-live copied to clipboard
Indicators for periods that abnormal counting activities occur.
Currently, we have a feature that allows users to browse counting results at a particular period. However, the timeline bar doesn't provide any clue when abnormal counting events occur.
As a user, I would like to see indicators for periods that such abnormal activities happen. For example, we could display the box of those periods differently.
Information about abnormal activities can be precomputed from a utility script and stored as a JSON file.
With this information we can automatically navigate to a zone that an abnormal activity will happen while enabling autoplay. We can add a check box to enable/disable this automatic highlight feature.
To summarise, I think there are three tasks needed to be done:
- Create a utility script to find which periods have abnormal counting. This script will traverse through all data files and determine whether there are abnormal counting. For example, scores for some candidates get decreased or increased by a large margin. Criterion for abnormal activities can be based on https://www.facebook.com/ta.chiraphadhanakul/posts/10157283641938278. The script should output a JSON file with the following structure:
{
'DATAFILE-1(DATETIME)': [
{ zone: "BKK-1", type: "SCORE_DECREASE", candidate: { ... } },
...
] ,
}
- Incorporate the output to <TimeMachine/>
- Use this information to automatically navigate while autoplaying. For example, for every move, we could look ahead two next two steps and change the url accordingly if the next two step has an abnormal event. For example,
