Book Image

ArcGIS for JavaScript Developers by Example

By : Jayakrishnan Vijayaraghavan, Yogesh Dhanapal
Book Image

ArcGIS for JavaScript Developers by Example

By: Jayakrishnan Vijayaraghavan, Yogesh Dhanapal

Overview of this book

<p>The book starts by explaining the basics of the ArcGIS web mapping ecosystem. The book walks you through the development of six major applications, covering a wide variety of topics such as querying, rendering, advanced data visualization and performing map analytics. It also emphasizes on writing modular code using pure dojo, which is the preferred platform for developing web GIS applications using ArcGIS JavaScript API.</p> <p>By the end of the book, you will have gained enough practical experience to architect a robust and visually powerful mapping application using the API.</p>
Table of Contents (16 chapters)
ArcGIS for JavaScript Developers by Example
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Statistical functionality provided by the API


Let's investigate what the API has to offer us in terms of these basic statistical measures. Later we will use these statistical measures in our application to provide better insight into the data. We will also use these techniques in our visualization techniques.

StatisticDefinition module

The API provides a module called the StatisticalDefinition module, which can be used in conjunction with the Query task and Query modules to extract the basic statistical measures we just discussed.

Module name: esri/tasks/StatisticDefinition

The following are the properties used to define a statistic definition object:

  • onStatisticField: Used to define the field on which statistics will be calculated

  • outStatisticFieldName: The name of the output field

  • statisticType: Used to define the type of statistic. The accepted statistic types are:

    • min: to get the minimum statistic

    • max: to get the maximum statistic

    • sum: the get the sum statistic

    • avg: to derive the average...