See here for the example code that generated this page

Box and Whiskers Plot Examples

This page demonstrates the interactive Box and Whiskers plot type in JSPlots.




Example 1: Basic Distribution Comparison

A simple example showing distributions for three groups with different means and spreads.

Features demonstrated:




Basic Distribution Comparison

Compare distributions across three groups. Red diamonds show mean ± standard deviation.

Plot Attributes

0.6 (0.25 - 2.5)

Data: basic_data




Example 2: Color-Coded Groups

Groups can be colored by categorical variables to visually distinguish different categories.

Features demonstrated:




Color-Coded Distributions

Use the 'Color by' dropdown to color groups by different attributes.

Plot Attributes

0.6 (0.25 - 2.5)

Data: colored_data




Example 3: Organized by Grouping Variable

Groups can be organized and visually separated by categorical variables.

Features demonstrated:




Organized by Grouping Variable

Use 'Group by' dropdown to organize groups. Notice the bold section labels and spacing between categories.

Plot Attributes

0.6 (0.25 - 2.5)

Data: grouped_data




Example 4: Multiple Value Columns

Switch between different numeric variables to compare distributions.

Features demonstrated:




Multiple Metrics Comparison

Switch between Revenue, Units Sold, and Customer Satisfaction using the Value dropdown.

Plot Attributes

0.6 (0.25 - 2.5)

Data: multi_data




Example 5: Interactive Filtering

Filter data by categorical variables to focus on specific subsets.

Features demonstrated:




Team Performance with Filtering

Use filters to focus on specific quarters or regions. Watch the observation count update.

Filters

Plot Attributes

0.6 (0.25 - 2.5)

Data: filtered_data




Example 6: Handling Wide Value Ranges

Box and whiskers plots work well with data that has wide ranges or outliers.

Features demonstrated:




Company Revenue Distributions

Notice how box and whiskers effectively shows the different scales and spreads across company sizes.

Plot Attributes

0.6 (0.25 - 2.5)

Data: wide_data




Example 7: Adjustable Aspect Ratio

Control the height-to-width ratio of the chart for optimal viewing.

Features demonstrated:




Many Groups - Adjustable Height

Use the Aspect Ratio slider below to adjust chart height for better visibility of all groups.

Plot Attributes

0.6 (0.25 - 2.5)

Data: aspect_data


This page was created using JSPlots.jl v0.4.0.