You are previewing Data Visualization with d3.js.
O'Reilly logo
Data Visualization with d3.js

Book Description

Inject new life into your data with this mini-guide that takes you through all the essentials of data visualization using d3.js. With a basic knowledge of JavaScript and this tutorial, you’re all set to create great visualizations.

  • Build blocks of web visualizations

  • Learn visualization with detailed walkthroughs

  • Learn to use data more effectively

  • Animate with d3.js

  • Design good visualizations

  • In Detail

    d3.js. provides a platform that help you create your own beautiful & visualization and bring data to life using HTML, SVG and CSS. It emphasis on web standards that will fully utilize the capabilities of your web browser.

    Data Visualization with d3.js walks you through 20 examples in great detail. You can finally stop struggling to piece together examples you've found online. With this book in hand, you will learn enough of the core concepts to conceive of and build your own visualizations from scratch.

    The book begins with the basics of putting lines on the screen, and builds on this foundation all the way to creating interactive animated visualizations using d3.js layouts.

    You will learn how to use d3.js to manipulate vector graphics with SVG, layout with HTML, and styling with CSS. You'll take a look at the basics of functional programming and using data structures effectively – everything from handling time to doing geographic projections. The book will also help make your visualizations interactive and teach you how automated layouts really work.

    Data Visualization with d3.js will unveil the mystery behind all those beautiful examples you've been admiring.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

    Table of Contents

    1. Kivy Cookbook
      1. Table of Contents
      2. Kivy Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Sections
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Conventions
        6. Reader feedback
        7. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Kivy and the Kv Language
        1. Introduction
        2. Installing Kivy
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
            1. Mac OS X
            2. Microsoft Windows
          5. See also
        3. Building your interfaces
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        4. Declaring properties within a class
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Relating Python code and the Kv language
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        6. Referencing widgets
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        7. Accessing widgets defined inside the Kv language in your Python code
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        8. Reusing styles in multiple widgets
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        9. Designing with the Kv language
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        10. Running your code
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
            1. Mac OS X
            2. Microsoft Windows
          5. See also
        11. Using Kivy garden
          1. Getting ready
          2. How to do it…
          3. There's more…
            1. Packing
      9. 2. Input, Motion, and Touch
        1. Introduction
        2. Using the mouse
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        3. Evolving to the touchscreen
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        4. Working with the accelerometer
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Using the gyroscope
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        6. The differences between the touch and motion events
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        7. Recognizing touch shapes
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        8. Detecting multitapping
          1. Getting ready
          2. How to do it…
          3. How it works…
        9. Grabbing touch events
          1. Getting ready
          2. How to do it…
          3. How it works…
        10. Recording gestures
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
      10. 3. Events
        1. Introduction
        2. Scheduling a one-time event
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        3. Scheduling a repetitive event
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        4. Triggering events
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Defining widget events
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        6. Creating custom events
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        7. Attaching callbacks
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        8. Declaring a property
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        9. Compounding properties
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
      11. 4. Widgets
        1. Introduction
        2. Using the basics: buttons, labels, and text inputs
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        3. Manipulating the widget tree
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        4. Traversing the tree
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Using swappable widgets
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        6. Organizing with layouts
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        7. Using FloatLayout
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        8. Using BoxLayout
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        9. Using GridLayout
          1. How to do it…
          2. How it works…
          3. There's more…
        10. Using StackLayout
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        11. Using RelativeLayout
          1. Getting ready
          2. How to do it…
          3. How it works…
        12. Using AnchorLayout
          1. How to do it…
          2. How it works…
        13. Working with ActionBar
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
      12. 5. Graphics – Canvas and Instructions
        1. Introduction
        2. Separating with the screen manager
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        3. Using drawing instructions
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        4. Using context instructions
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        5. Working with manipulating instructions
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        6. Rotating, translating, and scaling the canvas
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        7. Modifying with multitouching
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        8. Storing and retrieving the coordinate space context
          1. Getting ready
          2. How to do it…
        9. Introducing animations
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
      13. 6. Advanced Graphics – Shaders and Rendering
        1. Introduction
        2. Using Carousel
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        3. Creating and using Atlas
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Creating layouts
          1. Getting ready
          2. How to do it…
          3. How it works…
        5. Editing shaders
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        6. Creating widgets
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        7. Creating your own shader
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        8. Rendering in a Framebuffer
          1. Getting ready
          2. How to do it…
          3. How it works…
        9. Optimizing graphics
          1. Getting ready
          2. How to do it…
          3. There's more…
          4. See also
      14. 7. The API in Detail
        1. Introduction
        2. Getting to know the API
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        3. Using the asynchronous data loader
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        4. Logging objects
          1. How to do it…
          2. How it works…
          3. There's more…
          4. See also
        5. Parsing
          1. How to do it…
          2. How it works…
          3. See also
        6. Applying utils
          1. How to do it…
          2. How it works…
          3. See also
        7. Leveraging the factory object
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        8. Working with audio
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        9. Working with video
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        10. Working with a camera
          1. Getting ready
          2. How to do it…
          3. There's more…
        11. Using spelling
          1. Getting ready
          2. How to do it…
          3. How it works…
        12. Adding effects
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        13. Advanced text manipulation
          1. How to do it…
          2. How it works…
          3. There's more…
          4. See also
      15. 8. Packaging our Apps for PC
        1. Introduction
        2. Packaging for Windows
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        3. Including multimedia for Windows
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        4. Running apps in Windows
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        5. Packaging for Mac OS
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        6. Including multimedia for Mac OS
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        7. Running apps in Mac OS
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        8. Packaging for Linux
          1. Getting ready
          2. How to do it…
        9. Including multimedia for Linux
          1. Getting ready
          2. How to do it…
        10. Running apps in Linux
          1. Getting ready
          2. How to do it…
          3. How it works…
      16. 9. Kivy for Mobile Devices
        1. Introduction
        2. Packaging for iOS
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        3. Resizing the screen into iOS
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        4. Leveraging mobile features in iOS
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Preparing for the App Store
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        6. Packaging for Android
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. See also
        7. Resizing the screen into Android
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        8. Leveraging mobile features in Android
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
      17. Index