Cargando…

D3. js quick start guide : create amazing, interactive visualizations in the browser with JavaScript.

D3.js is a JavaScript library that allows you to create graphs and data visualizations in the browser, with HTML, SVG, and CSS. This book will take you from the basics of D3.js, so that you can create your own interactive visualizations, to creating the most common graphs that you will encounter as...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Huntington, Matthew
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing Ltd, 2018.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover
  • Title Page
  • Copyright and Credits
  • Packt Upsell
  • Contributors
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started with D3.js
  • What is SVG?
  • What makes D3 so special?
  • This book's approach to learning
  • A preview of each build
  • Using SVG to create images using code
  • Building an interactive scatter plot
  • Making a basic scatter plot interactive
  • Creating a bar graph using a data file
  • Animating SVG elements to create an interactive pie chart
  • Using physics to create a force-directed graph
  • Mapping
  • Setting up
  • Summary
  • Chapter 2: Using SVG to Create Images Using Code
  • Base tag
  • Basic elements
  • Positioning an element
  • Styling an element
  • Important SVG elements
  • Circle
  • Line
  • Rectangle
  • Ellipse
  • Polygon
  • Polyline
  • Text
  • Group
  • Bezier curves
  • Cubic Bezier curves
  • Smooth cubic Bezier curves
  • Quadratic Bezier curve
  • Smooth quadratic Bezier curve
  • Drawing a path
  • Arcs
  • Documentation
  • Summary
  • Chapter 3: Building an Interactive Scatter Plot
  • Adding a link to the D3 library
  • Adding antag and sizing it with D3
  • Creating some fake data for our app
  • Adding SVG circles and styling them
  • Creating a linear scale
  • Attaching data to visual elements
  • Use data attached to a visual element to affect its appearance
  • Creating a time scale
  • Parsing and formatting times
  • Setting dynamic domains
  • Dynamically generating SVG elements
  • Creating axes
  • Displaying data in a table
  • Summary
  • Chapter 4: Making a Basic Scatter Plot Interactive
  • Creating a click handler
  • Removing data
  • Dragging an element
  • Updating data after a drag
  • Creating a zoom behavior that scales elements
  • Updating axes when zooming and panning
  • Updating click points after a transform
  • Avoiding redrawing the entire screen during rendering.
  • Hiding elements beyond an axis
  • Summary
  • Chapter 5: Creating a Bar Graph Using a Data File
  • Setting up our application
  • Creating an external file to hold our data
  • Making an AJAX request
  • Writing the basic code
  • Handling file access
  • Using AJAX data to create SVG elements
  • Adjusting the height and the width of the bars
  • Adjusting the horizontal and the vertical placement of the bars
  • Making the width of the bars dynamic
  • Changing the color of the bar based on data
  • Adding axes
  • Summary
  • Chapter 6: Animating SVG Elements to Create an Interactive Pie Chart
  • Setting up the application
  • Create data/configuration variables
  • Creating an ordinal scale
  • Creating the color scale to map labels to colors
  • Setting up the SVG
  • Adding paths for each pie segment
  • Generating an arc creating function
  • Formatting the data for the arc
  • Adjusting the position of the pie
  • Making a donut graph
  • Removing parts of the pie
  • Summary
  • Chapter 7: Using Physics to Create a Force-Directed Graph
  • What is a force-directed graph?
  • How to set up a graph of relationships
  • Display
  • Physics
  • Setting up the HTML
  • Setting up styling for nodes and links
  • Setting up the SVG
  • Adding data for people
  • Adding data for relationships
  • Add circles to the SVG
  • Adding lines to the SVG
  • Creating a simulation
  • Specifying how the simulation affects visual elements
  • Creating forces
  • Summary
  • Chapter 8: Mapping
  • Defining GeoJSON
  • Setting up the HTML
  • Using a projection
  • Generating a path using a projection and GeoJSON data
  • Summary
  • Other Books You May Enjoy
  • Index.