Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Germany is not getting the blue color (chapter 3 page 3_24.html) #1

Open
erbrito opened this issue Dec 5, 2016 · 1 comment
Open

Comments

@erbrito
Copy link

erbrito commented Dec 5, 2016

In Chrome or in Opera browser, I'm getting an error with the 1st item, to get the color for the region.

The console is showing the following error.

3_24.html:109 Uncaught TypeError: Cannot read property 'region' of undefined(…)

@wolfgangvonludwigsburg
Copy link

wolfgangvonludwigsburg commented Dec 11, 2016

Germany is not getting the blue color (chapter 3 page 3_24.html)

This issue sounds like a "political correcting" issue ...
in concern to an upcoming "Trump-like" german party, that's associated with the color 'blue' ...

  • so Germany MUST stuck to 'black' (= Merkel's Party) !!
    (... laughing ;-) )

But let's come back to reality ;-))

The error comes from:
3_24_orig.html:105 Uncaught TypeError: Cannot read property 'region' of undefined(…)

that's origined by a non fitting selection (in line 89) ...
Change

  • d3.selectAll("g").each(function() {
    to
  • d3.selectAll("g.overallG").each(function() {

This example 3_24 is - at last to me as upcoming to d3 -
somehow confusing, since the mixing/overlapping
of d3 methods with SVG DOM methodology ...

Best wishes,
Wolfgang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants