Skip to main content

Varicent ELT Help Center

Stacked bar

Abstract

Use the Stacked bar chart to show the relative value of different grouped categories or to show ranked values.

Use the Stacked bar chart to show the relative value of different grouped categories or to show ranked values.

A stacked bar chart shows data represented by horizontal rectangular bars with comparative values stacked on top of each other.

Bar_stacked.svg

The length of the rectangle is proportional to the value it represents. Each group is represented by two or more horizontal bars.

Note

If some of your categories contain negative values, use a standard bar chart instead.

Input

The Column chart requires numeric columns.

Configuration

Use the following configuration options to configure the Stacked Bar chart.

Note

The Configuring the Stacked Bar chart gives configuration options through the Pipe module. If you have charts already created, you can access them through your Dashboards.

Configuring the Stacked Bar chart
  1. Go to the Pipes module from the side navigation bar.

  2. From the Pipes tab, click an existing pipe to open, or create a new pipe. To create a new pipe, read the Creating a pipe documentation.

  3. In the Pipe builder, add at least one data source to your pipe. For more information on adding a data source, see the Data tool.

  4. Add tools to build out your pipe. For more information about adding tools to your pipe, see the Using the Pipe builder canvas documentation.

  5. Create a chart from your pipe by clicking Charts on the canvas toolbar.

  6. Click Create Chart.

    The chart page opens.

  7. In the configuration pane, enter the following information:

    Table 109. Stacked Bar chart configuration

    Field

    Description

    Setup tab

    The Setup tab allows you to define the tool, chart type and other settings.

    Tool

    Select the tool in your pipe that you want to create a chart for.

    Chart type

    Type Stacked bar and click on the Stacked bar graphic to select it.

    X axis

    Select the column to use as the X axis.

    Series

    Select the column to use for the chart.

    Advanced section

    Show

    Select either Preview or Last built.

    • Preview displays the first 100 rows of your data from your last build.

    • Last build displays the first 1000 rows of your entire dataset from your last build.

    Sort

    Select to sort your chart data by None, Ascending or Descending.

    Aggregate?

    Click the Aggregate? checkbox to aggregate your chart data.

    All

    Calculate all columns that you select with one of the following operations:

    • Sum

    • Count

    • Average

    • Max

    • Min

    • Median

    • OR

    • AND

    • STDEV

    Selected column

    Calculate the series column with one of the following operations:

    • Sum

    • Count

    • Average

    • Max

    • Min

    • Median

    • OR

    • AND

    • STDEV

    Customize section

    Chart and Axis titles

    Select the following to add titles to your charts:

    • Include chart title

    • Include chart subtitle

    • Include horizontal axis title

    Horizontal axis label angle

    Select the degree from the drop-down list of the angle for the horizontal axis label.

    Include vertical axis title checkbox

    Select to add the vertical axis title.

    Vertical axis label angle

    Select the degree from the drop-down list of the angle for the vertical axis label.

    Left margin

    Enter the padding for the left margin or click the arrows to increase or decrease the number.

    Right margin

    Enter the padding for the right margin or click the arrows to increase or decrease the number.

    Top margin

    Enter the padding for the top margin or click the arrows to increase or decrease the number.

    Bottom margin

    Enter the padding for the bottom margin or click the arrow to increase or decrease the number.

    Colour

    Click on the column colour to change it.

    Legend

    Select the Include legend checkbox to add a legend to your chart.



Usage example

In this example, we want to show revenue for different products in two locations.

Each bar shows the difference in revenue between both locations for each product. However, this chart also shows the total revenue for each product.

Bar_stacked_xAxis.png