Skip to Main Content
Data Visualization with D3 and AngularJS
book

Data Visualization with D3 and AngularJS

by Christoph Körner
April 2015
Intermediate to advanced content levelIntermediate to advanced
278 pages
5h 38m
English
Packt Publishing
Content preview from Data Visualization with D3 and AngularJS

Cursors

With the previous knowledge, we are already prepared to implement cursors for our visualization directives. Cursor lets us interact with the visualization because they can show us more detail about the presented values. In my opinion, every two-dimensional graph should have an option to enable cursors; it facilitates understanding a graph.

A simple cursor

First, we want to start with a cursor that solely follows the mouse movements and shows the current values of the axes at the position of the cursor. The following image visualizes what we want to achieve. I bordered the cursor values with red color to better show where we want to place the cursor labels later:

A simple cursor

First, let's discuss the steps that we have to implement to achieve ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

D3.js: Cutting-edge Data Visualization

D3.js: Cutting-edge Data Visualization

Ændrew H. Rininsland, Michael Heydt, Pablo Navarro Castillo
D3.js 4.x Data Visualization - Third Edition

D3.js 4.x Data Visualization - Third Edition

Aendrew Rininsland, Swizec Teller
Intermediate D3.js

Intermediate D3.js

Scott Murray

Publisher Resources

ISBN: 9781784398484Supplemental Content