%% Use Interactive Controls in a Live Script
% This example shows how you can add interactive controls to a live script. Adding interactive controls to a live script is useful when you want to share the live script with others. Use interactive controls to set and change the values of variables in your live script using familiar user interface components such as numeric sliders and drop-down lists.
%% Add Interactive Controls to Your Script
% To add an interactive control, select a value in the live script. Then, go to the Insert tab, click the Control button, and select either Numeric Slider or Drop Down. To configure the interactive control, double-click it. When you change the value of an interactive control, the Live Editor runs the section that contains the control.
%% Visualize Airport and Carrier Delays
% Use the interactive controls in the live script to set the type of delay, the year, and the number of airports and carriers to visualize. The live script reads in the airport delay data using the readDelays function. The calculateDelays function calculates the average delay for the top airports and the top carriers. The plotDelays function creates bar charts to display the delays for the top airports and top carriers.
%
% Read in the airport delay data.
%
%
% Calculate the average delay for the top airports and the top carriers.
%
%
% Create bar charts to display the delays for the top airports and top carriers.
%