How are the sensors distributed across departments?

What if we want to see how the sensors distributed across different departments? Remember, we have the department field in our data, which we obtained after enriching the data using the sensor_id. Pie charts are particularly useful to visualize how data is distributed across multiple values of a keyword type field, such as department. We will start by creating a new pie chart visualization. 

Follow the steps as shown in the following screenshot:

Figure 10.9: Creating a visualization for locations across departments
  1. In the Metrics section, choose Unique Count aggregation and  the locationOnFloor field. You may modify the Custom Label to Number of locations.
  2. In the Buckets section, we need to choose Terms aggregation on the department field as we want to aggregate the data across different departments.

Click on Apply changes and save this visualization as Locations across departments. You can also create another similar visualization to visualize locations across different buildings. Let's call that visualization Locations across buildings. This will help us see how many locations are being monitored in each building. 

Next, we will create a dashboard to bring together all the visualizations we have built.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.159.19