background preloader

Javascript

Facebook Twitter

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.

Yeah, you get the hang of it! What is D3? D3 is Data-Driven Documents: “D3.js is a JavaScript library for manipulating documents based on data. It means taking data... ...binding it to HTML or SVG elements... ...and manipulating those elements based on the data. Simple, right? There's more to it, of course, but building on that core concept leads to spectacular things. D3 was created by Mike Bostock using his giant brain. D3 is not a graphical representation D3 is not a magic tool that draws and styles charts, maps, etc. It's not about charts, nor maps, nor any particular kind of graphic. Enough introduction. .data( ratData ) Map Projection Transitions. Bl.ocksplorer.org - Learn d3.js by Example.

D3. <div id="js_warning"><strong>JavaScript is turned off, so this page won&rsquo;t be very interactive. </strong> Switch JavaScript back on in your web browser for the full experience. </div> These tutorials have been expanded into a book, Interactive Data Visualization for the Web, published by O’Reilly in March 2013. Purchase the ebook and print editions from O’Reilly. A free, online version includes interactive examples. Dynamisez vos sites web avec Javascript ! Bienvenue à toutes et à tous, Qui n'a jamais entendu parler du JavaScript ?

Créé dans les années 90 en tant que simple langage de script, JavaScript est désormais un des poids lourds du développement Web ! Qui plus est, il se démocratise au sein d'autres environnements comme les serveurs avec le célèbre Node.js, les applications pour smartphones et tablettes, avec PhoneGap d'Adobe, les applications pour Windows 8, mais aussi les logiciels multiplateformes. Bref, JavaScript est partout ! Voici quelques exemples de ce qui est réalisable grâce au JavaScript : Sur ce, bonne lecture ! ScrollMagic - Demo. Drag-and-Drop with jQuery: Your Essential Guide. Home : Articles : Drag-and-Drop with jQuery: Your Essential Guide Tutorial by Matt Doyle | Level: Intermediate | Published on 17 February 2011 Categories: Learn how to use jQuery, and the jQuery UI Draggable and Droppable plugins, to create drag-and-drop interfaces in your web pages. Includes a full drag-and-drop card game example.

Dragging and dropping can be a very intuitive way for users to interact with your site or web app. Moving email messages into folders Reordering lists of items Moving objects in games around, such as cards and puzzle pieces Drag-and-drop with JavaScript used to be very hard to do — in fact, getting a decent cross-browser version working was next to impossible. In this tutorial we'll take a look at how to create drag-and-drop interfaces with jQuery, and we'll finish with a complete drag-and-drop example: a simple number cards game for kids. jQuery UI The easiest way to include both libraries is to use Google's CDN, as follows: Making elements draggable containment snap. The complete jQuery tutorial. Edit fiddle. Learn how to code by playing a game.

jQuery: The Write Less, Do More, JavaScript Library. Cours.