-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
ArcGIS Blueprints
By :
This is the second of two chapters that cover the development of tools for crime analysis, so we'll be building on what we developed in the first chapter. In the CrimeAnalysis.pyt toolbox, two new tools will be created: NeighborhoodBarChart and LinePlot. Both tools will use the Plotly Python library to create graphs based on crime data stored in a file geodatabase. The NeighborhoodBarChart tool will create a bar chart depicting the crime data by neighborhood, while the LinePlot tool will create a line plot graph showing the crime data over time. The charts will be exported to PNG format image files and displayed in an ArcMap layout. Finally, the Create Map tool will be updated to export the maps and charts stored in the layout view. The following diagram shows the whole process:

Let's get started and build the application.
Change the font size
Change margin width
Change background colour