[]
        
(Showing Draft Content)

Stacked Bar Chart

Stacked Bar Charts are a visualization used to display the contribution of different categories within a total value, with bars segmented horizontally to represent multiple data series. Each bar represents a category, while each segment within the bar shows the relative value of that series.

You can use stacked bar charts to analyze part-to-whole relationships across categories and compare segment proportions within and across groups.

This article explains the requirements for creating stacked bar charts and provides an overview of key properties and configuration options available in Wyn Notebooks.

You can use stacked bar charts to compare product sales by region, visualize expenses by department and cost type, or track task completion by team over time.

This topic explains how to create and customize column charts and explains the most frequently used properties. Refer to the reference for all the column chart properties and configuration options.



Create a Stacked Bar Chart

To create a bar chart, click on the Plus (+) button, opening the dropdown from which you can select your chart.


Bind Data to Chart

For a basic stacked bar chart, you need to determine:

  • Values (X-Axis): The measure displayed on the x-axis. Typically, this is a numeric field such as Sales, Profit, or Quantity.

  • Axis (Category / Y-Axis): The categorical data displayed on the y-axis. Typically, this is a field such as Region, Product, or Department.

  • Legend (Series): The dimension that defines how each bar is divided into stacked segments. Each unique value in this field creates one segment within a bar.

Once your data source is selected, all data attributes appear in the Data Binding tab. You can drag the following to the binding slots of the chart:

  • Data attribute: Drag and drop any field from the data source.

  • Measure: Hover over the data source table name, click the gear icon (⚙), and select Add measure…. Define a name and an expression, click OK, then drag the measure to a binding slot.

  • Calculated column: Hover over the data source table name, click the gear icon (⚙), and select Add calculated column…. Define your calculation, click OK, then drag it to a binding slot.


Add Aggregations

You can control how data is aggregated and labeled in the chart:

  • Aggregation method: Click the gear icon (⚙) next to a bound data attribute, and select an aggregation type (e.g., Sum, Average, Count).

  • Rename data attribute: Click the gear icon (⚙) next to a bound data attribute and select Rename to modify how it appears in the chart.


Set Chart Title

By default, Wyn generates a chart title based on the selected data attributes.

You can modify this title in the Inspector Panel:

  1. Click the gear icon (⚙) next to the Data Binding tab to open the Inspector Panel.

  2. Under Title, type a custom title for your chart.

Note: Once a custom title is entered, changes to the data attributes will no longer automatically update the chart title.


Add Tooltip

To include more details in the chart’s tooltip, drag one or more data attributes into the Tooltip binding slot. Tooltips appear when hovering over chart elements, providing contextual details without cluttering the chart area.


Customize Colors

You can adjust the color scheme of your bar chart in Inspector Panel > Chart Style > Palette.

Choose from:

  • Theme: A seven-color palette based on your dashboard theme.

  • Standard: A set of predefined seven-color palettes.

  • Custom: Define your own palette to match brand colors or visualization standards.


Build a Chart Trellis

A trellis column layout (also known as a small multiples view) creates a set of individual charts arranged horizontally. Each chart represents a subset of the data, determined by the field you assign.

To create a series of trellis column charts, drag a data attribute into the Trellis Columns binding slot. Each unique value in that field generates a separate chart displayed in columns across the dashboard.

A trellis row layout arranges multiple charts vertically, each showing a subset of data for a particular category or group.

To create a series of trellis row charts, drag a data attribute into the Trellis Rows binding slot. Each unique value generates an individual chart displayed in rows down the dashboard.