Skip to content

Add chart to voters history modal

The voters history modal currently displays data related to votes received by a witness. We would like to add a chart to make it easier to visualize this data The way i imagine this chart is preferably a bar chart (or line chart), with each data point being a day highlighting how many new votes were acquired vs how many lost. In a bar graph, you would have the 0 line, and votes above/below line indicating new/lost votes. The size of the bar would be related to their VP value. Voter names/icons would then show on hover, somewhat similar to landing page block graph. The chart values would be affected by the current page and any filtering applied, as both data and chart would retrieve data from the same API call.

image