graphing-library-docs icon indicating copy to clipboard operation
graphing-library-docs copied to clipboard

Question about the dot plot example data

Open qtfkwk opened this issue 2 years ago • 2 comments

https://plotly.com/javascript/dot-plots/

Questions

  1. What are the sources of this data? Or is it just an example?
  2. How can there be a higher percentage of population of registered voters than voting age in any country?

qtfkwk avatar Jun 07 '22 17:06 qtfkwk

I believe this is just sample data.

nicolaskruchten avatar Jun 07 '22 18:06 nicolaskruchten

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];

qtfkwk avatar Jun 10 '22 00:06 qtfkwk