graphing-library-docs
graphing-library-docs copied to clipboard
Question about the dot plot example data
https://plotly.com/javascript/dot-plots/
Questions
- What are the sources of this data? Or is it just an example?
- How can there be a higher percentage of population of registered voters than voting age in any country?
I believe this is just sample data.
Okay... no worries. I'd suggest the following modification then to fit the example better.
-var votingPop = [40, 45.7, 52, 53.6, 54.1, 54.2, 54.5, 54.7, 55.1, 56.6];
+var votingPop = [49.1, 45.7, 52.7, 84.3, 54.1, 61.1, 55.3, 64.2, 91.1, 58.9];
-var regVoters = [49.1, 42, 52.7, 84.3, 51.7, 61.1, 55.3, 64.2, 91.1, 58.9];
+var regVoters = [40, 42, 52, 53.6, 51.7, 54.2, 54.5, 54.7, 55.1, 56.6];