Giter Site home page Giter Site logo

adorable-qin / advanced-d3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 73nko/advanced-d3

0.0 1.0 0.0 3.77 MB

It's the most complete, single resource for learning D3.

License: MIT License

JavaScript 73.85% Python 0.45% TypeScript 5.54% CSS 12.37% HTML 7.79%

advanced-d3's Introduction

Fullstack D3 and Data Visualization

This is the full code that goes along with Fullstack D3 and Data Visualization. We're so excited that you're interested in learning d3.js and data visualization with us!

To run these examples, either read the Introduction and the first chapter of the book, or follow the instructions below.

Getting Started

You'll need a static file server to circumvent CORS limitations. Here are two options that will work -- feel free to use either, or another one that you're comfortable with.

a. node.js

I would recommend using this method because it has live reload built in, meaning that our page will update when we save our changes. No page refresh necessary!

If you don't have node.js installed, take a minute to install it (instructions here). You can check whether or not node.js is already installed by using the node -v command in your terminal — if it responds with a version number, you're good to go! node.js should also come with npm, which is short for Node Package Manager

Once node.js and npm are installed, run the following command in your terminal.

npm install -g live-server

This will install live-server, a simple static server that has live reload built-in. To start your server, run live-server in the root /code folder and it will even open a new browser window for you.

b. python

If you have python (version 3) installed already, you can use the Python 3 http server instead. Start it up in the root /code folder with by running the command python -m http.server 8080 in your terminal.

The particular server doesn't matter — the key idea is that if you want to load a file from JavaScript, you need to do it from a webserver, and these tools are an easy solution for a development environment. Make sure that you are in the root /code folder when you start either server.

Now we should have a server on port 8080. Load localhost:8080 in your web browser and you'll see a directory of code for each chapter, which looks something like this:

Directory screenshot

Click through the folders to find the example you're working on.

For all of our code examples, there will be a finished version in a sibling /completed folder.

Getting help

The code in this book has been vigorously tested to ensure that it works in all modern environments. But if you run into any part that is confusing, or if you get stuck anywhere, please reach out!

Send an email to [email protected] detailing the issue and we'll get back to you as soon as possible.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

advanced-d3's People

Contributors

73nko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.