Book Image

Expert Data Visualization

By : Jos Dirksen
Book Image

Expert Data Visualization

By: Jos Dirksen

Overview of this book

Do you want to make sense of your data? Do you want to create interactive charts, data trees, info-graphics, geospatial charts, and maps efficiently? This book is your ideal choice to master interactive data visualization with D3.js V4. The book includes a number of extensive examples that to help you hone your skills with data visualization. Throughout nine chapters these examples will help you acquire a clear practical understanding of the various techniques, tools and functionality provided by D3.js. You will first setup your D3.JS development environment and learn the basic patterns needed to visualize your data. After that you will learn techniques to optimize different processes such as working with selections; animating data transitions; creating graps and charts, integrating external resources (static as well as streaming); visualizing information on maps; working with colors and scales; utilizing the different D3.js APIs; and much more. The book will also guide you through creating custom graphs and visualizations, and show you how to go from the raw data to beautiful visualizations. The extensive examples will include working with complex and realtime data streams, such as seismic data, geospatial data, scientific data, and more. Towards the end of the book, you will learn to add more functionality on top of D3.js by using it with other external libraries and integrating it with Ecmascript 6 and Typescript
Table of Contents (10 chapters)

Custom Shapes and Paths and Using a Brush Selection

In this chapter, we're going to look at a couple of leftover subjects:

  • Symbols: We start by looking at the different types of symbols that are supported by D3. A symbol is just a small SVG path, which looks like a cross, a diamond, and so on. You can use symbols to better annotate scatterplots or line graphs.
  • Paths: We've already seen paths being used by the different path generators, but we can also construct paths directly. For this example, we'll look at how you can use the d3.path function to create paths from scratch and use them in SVG or on a 2D canvas.
  • Exporting SVG: With D3, you can create beautiful-looking visualizations. However, they can usually only be accessed from a browser with JavaScript support. In this chapter, we'll also show you how you can export your D3 visualization as a PNG and as an SVG file.
  • Importing SVG: In the...