Line & Combo Charts

Line & Combo Charts

Introduction

Line charts and combo charts are very useful when you want to observe data changes, fluctuations over certain period of time. These charts can use lines, bars or sometimes both (combo charts).

Usually, date/time is used as X Axis dimension but it is not mandatory.

ūüí° Line charts can plot a single dimension with up to 5 metrics, or 2 dimensions with a single metric.

Example:

Below is a simple line chart, showing number of sessions (metric) according to dates (dimension).

How to add a line chart?

Configure the line chart

Select the chart, then on the right, use the properties panel to configure the chart options. When the geo chart selected, check the properties panel on the right to change data properties and style.

Data properties

  • Data source: A data source provides the connection between the component and the underlying data set. Data source options are: change the data source, view/edit the data source, add a blended data source.
  • Dimension: These are categories of the geographical data. These can ve names Dimensions are data categories. Dimension values (the data contained by the dimension) are names, descriptions or other characteristics of a category.

ūüí° At least 1 dimension is required. The first dimension you specify serves as the primary data series in the chart. If you specify a breakdown dimension, the chart is limited to a single metric.

  • Drill down: Drilling down gives viewers a way to reveal additional levels of details. You can select different dimensions as each drill down layer.

  • Breakdown dimension: The Breakdown Dimension displays the metric data broken down according to the selected dimension. For example, a chart showing annual sales data could be broken down by a Sales Region dimension to show sales by region, or by an Employee ID dimension to show sales by sales associate.

  • Metric: Metrics shows numeric values which correspond to dimension. Such as users, sessions, clicks etc. Add metrics to the chart by dragging fields from the¬†Available Fields¬†panel on the right. You can also click¬†Add metric¬†in the¬†Data¬†tab. At least one metric is required.

  • Sort: This controls the default sorting behavior. You can select any metric in the chart's data source, or any dimension currently displayed in the chart.

  • Default date range:

    Custom: Lets you use the calendar widget to select a custom date range for the chart.

    Date compare type: Displays comparison data for the selected time period.

  • Filter: Filter help filtering the raw data which is coming from the data source. It might be helpful when you want to includes specific values or exclude some. For example you might want to exclude ad campaigns with zero impressions.

  • Google Analytics segment: This option appears for charts based on a Universal Analytics data source. A segment is a subset of your Analytics data. You can apply segments to your Data Studio charts to help ensure that your Data Studio and Google Analytics reports show the same data.

  • Interactions: When interactions are enabled on a chart, that charts acts like a filter controls. You can filter the report by clicking or "brushing" your mouse across the chart.

Style Properties

Items here repeat for each metric displayed in the chart. The order of sections matches the order of the metrics listed in the data tab.

    • Series: This section repeats for each metric displayed in the chart.

      • Line or Bars: Displays the data points for this series as a line or bar.

      • Line weight: Determines the thickness of line series.

      • Series color: Sets the color for the series line or bar.

      • Cumulative: When checked, data for this series is summed over time. Otherwise, the data is shown with no additional aggregation.

      • Show points: Displays individual data points on a line series. Viewers can mouse over a data point to display its value.

      • Show data labels: Displays individual values on for the data points in the series.

      • Compact Numbers: (Turn on Show data labels to see this option) Rounds numbers and displays the unit indicator. E.g., 553,939 becomes 553.9K.

      • Decimal Precision: (Turn on Show data labels to see this option) This changes the number of decimal places in metric values.

      • Trendline: Adds an additional line to show the trend in the change of metric values. A¬†linear trendline¬†is the straight line that most closely approximates the data in the chart. If your data is best explained by an exponential of the form¬†eax+b, you can use an¬†exponential trendline¬†to show the direction of your data. A¬†polynomial trendline¬†displays data directionality as a curved line. It can be useful for analyzing large, highly variable data series.

    • General:

      • Smooth: Display series lines as curves.
      • Stacked bars: Display bars as stacked bars.
    • Number of points: Determines the number of data elements shown in the chart's X-axis. If the number of points selected is less than the number of values in the X-axis dimension, only the top N points will be shown (where N equals the number of points you've selected).

    • Reference lines: This lets you to compare your data to a reference data. For example, you can use reference lines to visualize daily sales against a target sales figure.

    • Axes: These options control the display of the chart axes titles and scales. A right Y-axis section appears when you have more than 1 metric in your chart.
      • Show axes: Shows or hides the chart axes.
      • Reverse Y-Axis direction: Controls the vertical display of the Y-axis.
      • Reverse X-Axis direction: Controls the horizontal display of the X-axis.
      • Show axis title: Shows or hides the axis labels.
      • Axis min and max: Set minimum and maximum values for the Y-axes.
      • Custom tick interval: Controls the interval between axis ticks.
      • Log scale: Makes the Y-axis scale logarithmic.
    • Grid: These options control the look of the chart grid.
      • Axis color: Sets the color of the x-axis line.
      • Grid color: Sets the color of the grid lines.
      • Chart background: Sets the color of the chart background.
      • Chart border color: Sets the color of the inner chart border.
    • Background and border: These options control the appearance of the chart background container.
      • Background: Sets the chart background color.
      • Border Radius: Adds rounded borders to the chart background. When the radius is 0, the background shape has 90¬į corners. Border radius of 100¬į produces a circular shape.
      • Opacity: Sets the chart's opacity. 100% opacity completely hides objects behind the chart. 0% opacity makes the chart invisible.
      • Border Color: Sets the chart border color.
      • Border Weight: Sets the chart border line thickness.
      • Border Style: Sets the chart border line style.
      • Add border shadow: Adds a shadow to the chart lower and right borders.
    • Legend:
      • None: No legend appears
      • Right: Legend appears on the right.
      • Bottom: Legend appears on the bottom.
      • Top: Legend appears on the top.
      • Alignment: Sets the alignment of the legend relative to the selected position.
      • Max lines Sets the number of lines used by the legend. If the number of series requires more lines, overflow items can be displayed by clicking the < and > arrows.
    • Chart Header: The chart header lets viewers perform various actions on the chart, such as exporting the data, drilling up or down, and viewing the chart in the Explorer tool. You can choose show on hover - which is default, always show and do not show.
Photo by Markus Winkler on Unsplash

Blog post

Give your customers a summary of your blog post