Book Image

Mastering ArcGIS Server Development with JavaScript

By : Raymond Kenneth Doman
Book Image

Mastering ArcGIS Server Development with JavaScript

By: Raymond Kenneth Doman

Overview of this book

Table of Contents (18 chapters)
Mastering ArcGIS Server Development with JavaScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing D3.js


You can branch out beyond the ArcGIS JavaScript API and Dojo if you want to create jaw-dropping graphics. One popular JavaScript library you could use to create charts, graphs, and other data-driven visualizations is D3.js. D3.js was created by Mike Bostock of the New York Times to use HTML, SVG, CSS, and JavaScript to create interactive data-driven graphics. It reads data from HTML and renders it in the way you decide.

D3.js development has taken off since it was first released to the public. The library is very versatile in that it doesn't render just charts and graphs. It provides the building blocks to create charts, graphs, and other interactive graphics that can move and be styled like any HTML element. Even GIS maps in different projections can be shown on a webpage using D3.js and a file format called GeoJSON.

For anyone with experience with jQuery, scripts written with D3.js behave in the same way. You can select HTML elements with the d3.select() or d3.selectAll...