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

Mixing graphs into our maps


As we have learned before, the ArcGIS JavaScript API contains more than tools to create maps and text. Built on top of the Dojo framework, the ArcGIS API comes with many user controls and widgets to help you present data. We can create dynamic tables, charts, graphs, and other data visualizations.

But you are not limited to the charting and graph tools provided by API. Using Dojo's AMD style, you can incorporate other libraries outside the framework into your widget's build, and load them as they are needed. If you work with team members who are more familiar with a library like D3.js, you can load the library asynchronously into your widget and let the other person develop the graphics.

In this chapter, we'll explore both internal and external graphics libraries to add graphs to our data. We'll use the dojox/charting (http://dojotoolkit.org/reference-guide/1.10/dojox/charting.html) modules packaged with the ArcGIS JavaScript API, We'll also implement the graphs...