plotly / graphing-library-docs

Plotly's graphing libraries documentation.
https://plotly.com/graphing-libraries
Other
54 stars 66 forks source link

Question about the dot plot example data #181

Open qtfkwk opened 2 years ago

qtfkwk commented 2 years ago

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?
nicolaskruchten commented 2 years ago

I believe this is just sample data.

qtfkwk commented 2 years ago

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