The Graph Builder Tab

Create graphs to visualize your data. This page explains basic graph types including histograms, scatter plots, bar charts, and time series plots.

How to Create Graphs

  1. Open Graph Builder tab: Select Analysis → Graph Builder... from the menu bar
  2. Select dataset: Choose the dataset to graph from the dropdown menu in the header
  3. Select graph type: Click the type of graph you want to display (Histogram, Scatter Plot, Bar Chart, etc.)
  4. Configure settings: Set axes and variables according to the selected graph type
    • Histogram: Variable, number of bins, grouping
    • Scatter plot: X-axis, Y-axis, color coding
    • Bar chart: Category, value, aggregation method, grouping, sorting
  5. Adjust options: Set filter conditions and additional options as needed

Basic Graphs

Histogram

Displays the distribution of a single numeric variable as a bar graph.

Settings:

Basic tab:

  • Column: Select the numeric column to graph
  • Bins: Specify the number of bars (bins). For a column whose values are all integers, MIDAS sets the bin width to the range of the values divided by Bins, rounded up to an integer, and places the bin edges halfway between integers. For such a column the number of bars differs from Bins, and when the range is no larger than Bins, every value gets its own bar. The shape of the distribution looks different depending on the number of bins, so try several values
  • Y Scale: Choose what the bar heights represent, Count or Proportion. Count is the number of rows and Proportion is the relative frequency. With Group By set, Proportion divides by the row count of each group, so the bar heights add up to 1 within every group. In a group with few rows, one row moves the proportion by a lot and the bars swing correspondingly
  • Orientation: Vertical or horizontal bars
  • Show Density Curve: Overlay a smooth curve computed by kernel density estimation. The density curve is drawn on a second axis (Density) on the right, so the axis of the bars keeps whatever Y Scale selects. This shows the shape of the distribution independently of the bin boundaries

Grouping tab:

  • Group By: Select a category column to display color-coded by group

Annotations tab:

  • Show Mean: Display the mean as a solid line. With Group By set, the mean of each group is shown
  • Show Median: Display the median as a dashed line. With Group By set, the median of each group is shown

Histogram of numeric variable distribution created with MIDAS: displays data frequency per bin and visualizes distribution shape and outliers

Scatter Plot

Visualizes the relationship between two numeric variables as points.

Settings:

Basic tab:

  • X-Axis: Numeric column for horizontal axis
  • Y-Axis: Numeric column for vertical axis
  • X-Axis Scale / Y-Axis Scale: Axis scale (Linear, Log, or Square Root)
  • Color: Select a category column for color-coded grouping

Density tab:

  • Display Mode: Select display mode
    • Points only: Shows points only
    • Density only: Shows only contours from 2D kernel density estimation
    • Points + Density: Shows contours and all points

Reference Lines tab:

  • Add Reference Line: Adds a reference line. Horizontal draws a horizontal line at the given y value, Vertical draws a vertical line at the given x value, and Diagonal (y = x) draws the line y = x

How the Diagonal line appears depends on the axis ranges and scales. The line does not widen the axis ranges, so it is not visible on a scatter plot whose X and Y axis ranges do not overlap. When only one of the X and Y axes is Log or Square Root, the line appears curved on screen.

To overlay a regression line or a smoothed curve on a scatter plot, use Custom Graph.

MIDAS Scatter Plot: places two numeric variables on X and Y axes, displaying each data point as a dot. Used for discovering correlations and patterns

Bar Chart

Compares values by category using vertical or horizontal bars.

Settings:

  • Category Column: Column representing categories
  • Value: Select one numeric column to aggregate. Choose Count (Frequency) instead to count rows per category
  • Aggregation: Aggregation method for the numeric column (Sum, Average, Median, Min, or Max)
  • Group By: Categorical column that splits the bars into series
  • Display Mode: With Group By, place the bars of the series side by side (Grouped) or stack them (Stacked)
  • Orientation: Vertical or horizontal bars
  • Sort Order: Sort order (category order, value descending/ascending). With Group By, the value of a category is the sum of the aggregated values of all series
  • Top N Categories: Display only N categories. With value ascending, the N smallest values are kept; otherwise the N largest values are kept. With category order, the kept categories follow the default order of the axis. Leave the field empty to show all categories
  • Show value labels: Display the aggregated values on the bars. When stacked, each segment's value appears just inside the top of the segment

MIDAS Bar Chart: displays values by category as vertical or horizontal bars, with selectable aggregation methods (count, sum, average, etc.)

Time Series Plot

Displays data changes over time as a line chart. Multiple time series are displayed together, distinguished by color.

Settings:

Basic tab:

  • X-Axis (Time): Column for the horizontal axis. Date and datetime columns can be selected, as well as numeric columns such as elapsed time or sequence numbers
  • Y-Axis (Values): Numeric columns to display (multiple selection supported)

Ranges tab:

  • Custom Range Bands: Add bands that fill the area between the values of the Lower Bound and Upper Bound columns at each X

MIDAS Time Series Plot: displays data changes along time axis as line chart, visualizing trends and seasonal patterns

Other Graphs

Pair Plot

Displays pairwise relationships between multiple numeric variables as a scatter plot matrix. The diagonal shows histograms, and off-diagonal cells show scatter plots with Pearson correlation coefficients.

The pair plot shows tick marks only around the outer edge of the matrix. Each variable has the same axis range in its row and its column, so the ticks on the left edge give the vertical axis of the scatter plots in that row, and the ticks on the bottom edge give the horizontal axis of the cells in that column. The vertical axis of the diagonal histograms is the count, and has no tick marks.

The pair plot fits the whole matrix into the graph area. The cell size follows from the width and height of the graph area, and the matrix extends beyond the graph area, to be scrolled, only when a cell side would be smaller than 24 px. Cells with a side smaller than 48 px do not show the correlation coefficient.

Settings:

  • Variables: Select numeric columns via checkboxes. Columns with an interval/ratio scale are eligible, and 2 to 10 variables can be selected.
  • Display Order: Change the display order of selected variables

MIDAS Pair Plot: displays pairwise relationships between multiple numeric variables as scatter plot matrix. Shows distribution of each variable on diagonal, allowing simultaneous confirmation of correlations between every pair of variables

Datetime Histogram

Visualizes the distribution of datetime data as a histogram on a time axis.

Settings:

  • Date/Time Column: Column representing datetime or date
  • Time Interval: Aggregation time interval (Auto, 1 minute to 1 year)
  • Show trend line: Display a trend line using LOESS (locally weighted regression). The span is fixed at 0.75 (75% of all data points are used as the neighborhood)

MIDAS Datetime Histogram: displays distribution of datetime data as histogram on time axis, visualizing event frequency and temporal patterns

Custom Graph

Build layered plots by combining geoms, stats, and aesthetic mappings.

See the Custom Graph Guide for details.

Graph Operations

Interactive Selection

All graphs support data point selection. Selection methods vary by graph type:

Click selection: Click data points, bars, or bins to select. When you click while holding Ctrl/Cmd, MIDAS removes the element's rows from the selection if all of them are selected, and adds them to the selection otherwise. The click rules are described in Sharing the Selection.

Rectangle selection: Switch to Select mode using the mode toggle buttons in the top-right corner of the graph, then drag to select. A graph with no selectable layer in the drag direction does not show the Select mode button. Selection Conditions describes which layers can be selected.

  • Pan mode: Drag graph to move the display range (default)
  • Select mode: Drag mouse to select a range

Selected rows are highlighted in other tabs such as Data Table and Statistics. See Row Selection and the Filtered Data Tab for details on cross-tab synchronization.

Double-click: Double-click a data point or bar to open a Filtered Data tab that shows the rows the element represents. For a graph that draws a derived dataset, see Row Selection and the Filtered Data Tab for the tab that opens instead.

Export

Click the Export as SVG button below the preview to download the graph as an SVG file.

Export Graph dialog

File Name - Specify the output file name. The .svg extension is added automatically.

Export Size - Specify the width and height of the output SVG in pixels. Values range from 100 to 10000. MIDAS redraws the graph at the specified width and height before exporting it. The layout of the plot area and legends fits the specified size, and text keeps the same size as in the preview. When the graph title is shown, the specified height includes the title.

Graphs added to a report can also be exported from the report element menu. See Reports for details.

Saving Graphs

Graph settings created in Graph Builder are automatically saved to the project as tab state. Graph settings are preserved when you close and reopen the project.

Next steps

  • Custom Graph - Flexible visualization with Grammar of Graphics
  • Report - Compile graphs and tables into reports

See also