Database Reference
In-Depth Information
FIguRe 9-9 The new markup for OECD.svc
So take the JSON from Treemap.js ( Treemap.js is part of the code down-
loads for this chapter, available at www.wiley.com/go/visualintelligence ),
where it says var json = {xxxxx}; and take everything including the two
braces but excluding the equal sign and semi-colon, and paste it into the
converter. You can see what to copy in Figure 9-10. Make sure to copy all
the JSON before the line that has ends with //, but excluding the semi-colon.
Note that Figure 9-10 has been edited, and you need all the content from
the brace on line 31 to the brace on line 290.
TexT edITors
While Notepad or Wordpad that are included with Windows could be
used for this, a free editor such as Notepad++ (available from http://
notepad-plus-plus.org/ ) will be much easier to use, as it includes syntax
highlighting and line numbers. You will set the syntax highlight by going
to Language a J a Javascript in the menu.
Create a new class called Treemap.cs by right-clicking on your solution file
and clicking Add a Class, as in Figure 9-11.
Search WWH ::




Custom Search