The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

hettlage (136) [Avatar] Offline
Just a minor suggestion: You might perhaps point out somewhere (maybe in section 1.5) that D3 may require a <meta charset="UTF-8"> element in the header. (I forgot to include it, and was really puzzled to get an error "SyntaxError: Invalid character 'u8364'" in Safari.)
elijah.meeks (127) [Avatar] Offline
Re: Charset requirement
You're absolutely right, I should have mentioned this. You can either set your document to utf-8:

<!DOCTYPE html>
<meta charset="utf-8">

Or you can set the charset of the script to utf-8:

<script charset="utf-8" src="d3.js"></script>

Or you can use the minified script, which shouldn't have any utf-8 in it:

<script src="d3.min.js"></script>

I'll include that in Chapter 1 in the next revision. Thanks a bunch for noting this.

Message was edited by: