Adding our first Dashboard

A Dashboard is a space where a user can add many miniature items (such as charts, maps, tables, texts, and counters) and can create connections between them to provide an overview for better visualization of the data. A user can also interact spatially and analytically with the data by creating connections between maps and charts, and/or perform analysis for better decisions.

Add the world dataset and create a simple map

Like in previous upload datasets steps, follow the path to /opt/data/sample_data/pretty_maps/data and upload the shapefile with name ne_50m_admin_0_countries. Edit the style to be classified by Map Colour. Once the layer is uploaded create a simple map by clicking on the Add Resource button and create a map as per the map tutorial.

Create a Dashboard

  • From the Add Resource dropdown menu, select Create dashboard

image

  • You will be presented with an empty dashboard page ready to be populated.

  • Click on the Add icon image to add new widgets.

image

  • The Widget page will open on the left showing a list of items that can be created and added to the dashboard.

image

Add map widget

  • Let’s add our first widget to our dashboard, the Map widget type

  • Click the Map widget button and you’ll be redirected to a list of existing GeoNode maps. Choose our previously created World Population map and click the right arrow image to add this to our dashboard.

  • Once added, you can configure some map options, such as disabling/enabling the info tool image or add other datasets to the existing map using the plus image button.

  • For now, let’s just proceed without changing the map options by clicking the right arrow button again image

  • On the last step for creating the Map dashboard widget you are asked to provide a Title and a Description for your widget. Add some relevant information there, as below:

image

  • Finally, save it using the floppy disk button image

  • Now we can see our Map widget on our dashboard. Resize the widget so that it covers most of the area of your dashboard. Just leave some space at the bottom and to the right of the dashboard canvas area as shown below:

image

Add table widget

  • At the bottom of our dashboard canvas, we will include another type of widget, the Table widget type.

  • Again, click on the add widget button image to add one more widget to our dashboard.

  • From the widget list, select the Table widget type.

  • Once selected, you will be redirected to the GeoNode’s list of available datasets. If you did not previously rename our world population dataset, choose the dataset ne_50m_admin_0_countries0 dataset from the list.

image

  • Once selected, click the right arrow button image to proceed.

  • In the next step you will be asked which fields you want to show on the dashboard table widget. In this case, we will only choose fields, NAME, POP_EST, and ISO_A2

image

  • Before proceeding, please also enable the connect widget button image by clicking on it.

  • Once again, in the last step, we’ll need to provide a title and description for our widget.

image

  • At the end, click the floppy disk symbol save button image to save and add the widget to our dashboard.

  • Place it at the bottom of our dashboard and change the width of it to cover all of the bottom area.

image

Add legend widget

  • Next, we will add a legend widget to our dashboard to make the map color classes more readable.

  • Click on the plus button image to add a new widget and from the list choose the Legend widget type.

  • You should see the legend for our world population map dataset (ne_50m_admin_0_countries0) on the preview of the legend widget area.

image

  • Let’s move on by clicking the right arrow button image.

  • Again, the final step is to provide a Title and a Description to our widget.

image

-Save it and add the widget to the map by clicking the floppy disk symbol save button image.

  • Move the widget and place it near the empty area to the right of our existing map. Adjust widgets’ sizes if needed to have a dashboard configuration similar to the next picture.

image

Add counter widget

  • As a final trial to our dashboard, we will include a Counter widget type to provide the total number of countries in the world.

  • From the add more widget button image choose the widget type Counter from the list.

  • Again, it will show a list of the available datasets to choose from. Choose the ne_50m_admin_0_countries0 dataset again.

image

  • Let’s move on by clicking the right arrow button image.

  • Now we need to configure our widget and from the configuration page we can see:

  • Use- The property/column field to use for our calculation

  • Operation- The available field level calculation available (COUNT, SUM, AVG, etc…)

  • Let’s use the field fid and the operation count for this exercise.

image

  • You should see already in the preview the total number of countries in the dataset (242)

  • Click the right arrow button image. Add a title and description to our configured widget.

image

  • The final step is to save the widget and place the widget on our dashboard using the floppy disk button image. Feel free to place it somewhere as you will need to rearrange other existing widgets to allow our new Counter widget to be clearly visible. image

Congratulations!! You have built your first simple dashboard with GeoNode!

Next Section: Introduction to Configuring GeoNode (Basics)