This video covers importing XML and making it useable with the map function.
- [Instructor] Now we're going to take a look…at the data handler for xml.…And here's an xml file that I prepared earlier.…You can see we have each of the letters…of the alphabet A to zed…and a numeric value called frequency against each one.…You can copy what's on the screen…if you don't have access to the files.…And bear in mind, you don't need all 26 letters.…You can just copy, say five, if you like.…As long as you keep the structure exactly the same.…So you need to keep the xml declaration,…the enclosing data tags, the letter tags,…which contain an ID and the frequency tags…which contain a number.…
The data handler for xml works in much the same way…as the one for JSON.…You use d3.xml to load the file.…And my ones called data.xml…and then you have .get…within which we put function (error, data)…and we can shift that down a bit.…And I'm just gonna comment out these logs over here like so.…So the first thing we're going to do…is log our new data variable to the console.…
And you see it gives us something called a document.…
- Making a simple bar chart with D3
- Understanding SVG graphics
- Drawing basic shapes
- Adding text
- Using generators and the path element
- Creating a scale and axes
- Importing data into D3
- Creating trees and Voronoi tessellations
- Preparing your data for advanced graphics
- Adding interactivity and transitions
- Choosing the right graphic
- Finding D3.js plugins
Skill Level Intermediate
Data Visualization for Data Analystswith Bill Shander1h 31m Beginner
2. Making a Simple Bar Chart with D3
3. Basic Shapes, Courtesy of SVG
4. Advanced Shapes, with D3 and Path
5. Scales and Axes
6. Importing Data into D3
7. Additional Graphics with D3 Layout
8. Preparing Your Data for Advanced Graphics
10. Picking the Right Graphic
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.