# Creating Gauge Visualizations in Kibana 7.6

1.5 hours
• 3 Learning Objectives

Gauge visualizations in Kibana provide an easy to read and understand readout of your data. What’s more is that they can be used to not only demonstrate the value of something, but relate that value on an overall scale. In this hands-on lab, you will create gauge visualizations to display instantaneous metric readouts.

## Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create and Save the Total Flights Visualization
1. Create a new gauge visualization.
2. Calculate the total number of flights and label it as "Flights".
3. Create 5 ranges at 100 point intervals (0-100, 100-200, 200-300, 300-400, 400-500).
4. Color the gauge with the "Blues" schema.
5. Save the visualization as "Total Flights".
Create and Save the Average Ticket Price Visualization
1. Create a new gauge visualization.
2. Calculate the average of `AvgTicketPrice`, label it as "Ticket Price", and display it as a dollar amount with 2 decimal places (example: 1,234.567 as \$1,234.56).
3. Create 4 ranges at 500 point intervals (0-500, 500-1000, 1000-1500, 1500-2000).
4. Color the gauge with the "Green to Red" schema.
5. Save the visualization as "Average Ticket Price".
Create and Save the Delayed Flights Visualization
1. Create a new gauge visualization.
2. Add a filter to only show documents where `FlightDelay` is `true`.
3. Calculate the total number of flights and label it as "Delayed Flights".
4. Split the buckets on the top 3 of `carrier` ordered by the number of delayed flights in descending order and labelled as Carrier.
5. Create 5 ranges at 10 point intervals (0-10, 10-20, 20-30, 30-40, 40-50).
6. Color the gauge with the "Yellow to Red" schema.
7. Save the visualization as "Delayed Flights".

You work as a data analyst for the Federal Aviation Administration (FAA). You've been tasked with creating the following gauge visualizations in Kibana to monitor the trends of daily commercial air travel:

Total Flights

• Calculate the total number of flights and label it as Flights.
• Create 5 ranges at 100 point intervals (0-100, 100-200, 200-300, 300-400, 400-500).
• Color the gauge with the "Blues" schema.

Average Ticket Price

• Calculate the average of `AvgTicketPrice`, label it as "Ticket Price", and display it as a dollar amount with 2 decimal places (example: 1,234.567 as \$1,234.56).
• Create 4 ranges at 500 point intervals (0-500, 500-1000, 1000-1500, 1500-2000).
• Color the gauge with the "Green to Red" schema.

Delayed Flights

• Add a filter to only show documents where `FlightDelay` is `true`.
• Calculate the total number of flights and label it as Delayed Flights.
• Split the buckets on the top 3 of `carrier` ordered by the number of delayed flights in descending order and labelled as Carrier.
• Create 5 ranges at 10 point intervals (0-10, 10-20, 20-30, 30-40, 40-50).
• Color the gauge with the "Yellow to Red" schema.

Your lab node node has an Kibana instance which can be accessed in your local web browser by navigating to the public IP address of the lab node over port 8080 (example: `http://public_ip:8080`). To log in, use the "elastic" user with the password "elastic_acg".

## What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.