tcpd / lokdhaba

Lokdhaba source code
http://lokdhaba.ashoka.edu.in
2 stars 2 forks source link

NOTA Turnout: MP #64

Closed nissabasim closed 6 years ago

nissabasim commented 7 years ago

While trying to generate the chart, the drop-down menu for the years doesn't appear. Instead, the interface allows you to write the year manually which I did but even then the map is not generated.

hangal commented 7 years ago

@nissabasim does this still happen?

nissabasim commented 7 years ago

We discovered that MP can't have a NOTA map since NOTA was only introduced in 2014 and the last MP election took place in 2013.

hangal commented 7 years ago

Can we give a sensible user message in this case, so the user doesn't get confused?

mohitkharb commented 7 years ago

On it, Should I put "Only for post 2013 assemblies, as NOTA was introduced in 2014" ?

hangal commented 7 years ago

I think we have to make this message appear any time the NOTA map is not available.

My suggestion would be to not make it specific to this election, but say something like: NOTA was not an option in this election.

pls discuss with @gilkumar for exact wording.

hangal commented 7 years ago

In fact, ideally, we would write this message in place of the years-dropdown itself. "This map is not available for any year."

And the message above would appear in the map area if the user typed in an invalid dropdown.

mohitkharb commented 7 years ago

Currently If we select the year in which NOTA was not present, the nota turnout map visualizations will throw an error, so for nota turnout map visualizations, I am passing input years above 2014 only.

hangal commented 6 years ago

Can't fix it in time for the Guj results, will do it later.

@gilkumar