AngularJS: Tutorial: 0 - Bootstrapping. Loading... In this step of the tutorial, you will become familiar with the most important source code files of the AngularJS Phonecat App. You will also learn how to start the development servers bundled with angular-seed, and run the application in the browser. Before you continue, make sure you have set up your development environment and installed all necessary dependencies, as described in the Environment Setup section. In the angular-phonecat directory, run this command: git checkout -f step-0 This resets your workspace to step 0 of the tutorial app. You must repeat this for every future step in the tutorial and change the number to the number of the step you are on. If you haven't already done so, you need to install the dependencies by running: npm install To see the app running in a browser, open a separate terminal/command line tab or window, then run npm start to start the web server.
You can now see the page in your browser. The HTML page that displays "Nothing here yet! " <! MaptimeSEA. As a simple web search will tell you, D3 is a data visualization library that runs like lightening in your web browser. You may hear data visualization and think I don't need a data viz lib, I make maps. Well, maps run on data, plus D3 is actually pretty good with maps, so keep an open mind. You might also wonder why you would choose D3 over another library like Leaflet.js. The short answer is it really depends on your use case and the type of data you want to display. The long answer is this tutorial. D3 stands for Data Driven Documents.
House keeping To successfully follow this tutorial you need a text editor (such as Notepad++ or Sublime Text). Also, to complete this tutorial without running a local web server (not what we're here to learn), you'll need to open your web map in Firefox. At its core, D3 takes your information and transforms it into a visual output. SVGs are human readable, which works well for us because we aren't computers. Let's take a look at this scatterplot. Fin. Enjalot.github. Pre-Game Some things to go over before we dive in SVG Overview overview of most common SVG elements and key ways SVG is similar to and different from html Binding API introduction to the d3 API functions that relate to the DOM and data binding, such as selections, transitions and the enter/update/exit pattern.
Non-Binding API overview of the rest of the d3 API functions which can be used in all kinds of situations Reusable Charts introduction to the reusable chart pattern Diving Board Links and resources for diving even deeper into d3. Bl.ocksplorer.org - Learn d3.js by Example. Mapping with D3 - Maptime Boston. A friendly introduction Andy Woodruff for Maptime Boston @maptimeBoston | @awoodruff Follow along! Maptimeboston.github.io/d3-maptime Or get the code for examples: github.com/maptimeboston/d3-maptime Before we begin... D3 is HARD for beginners. D3 documentation. If you see the down arrow in the corner of a slide, press down to see links to helpful resources on the subject at hand.