# Time series

* [Tooltip options](#timeseries-tooltipoptions)
  * [Tooltip mode](#timeseries-tooltipmode)
* [Legend options](#timeseries-legendoptions)
  * [Legend mode](#timeseries-legendmode)
  * [Legend placement](#timeseries-legendplacement)
  * [Legend values](#timeseries-legendvalues)
* [Graph styles](#timeseries-graphstyles)
  * [Bar alignment](#timeseries-baralignment)
  * [Line width](#timeseries-linewidth)
  * [Fill opacity](#timeseries-fillopacity)
  * [Gradient mode](#timeseries-gradientmode)
  * [Show points](#timeseries-showpoints)
  * [Point size](#timeseries-pointsize)
  * [Line interpolation](#timeseries-lineinterpolation)
  * [Line style](#timeseries-linestyle)
  * [Connect null values](#timeseries-connectnullvalues)
  * [Stack series](#timeseries-stackseries)
  * [Fill below to](#timeseries-fillbelowto)
* [Axis options](#timeseries-axisoptions)
  * [Placement](#timeseries-placement)
  * [Label](#timeseries-label)
  * [Width](#timeseries-width)
  * [Soft min and soft max](#timeseries-softminandsoftmax)
  * [Scale](#timeseries-scale)
  * [Transform](#timeseries-transform)
* [Color options](#timeseries-coloroptions)
  * [Classic palette](#timeseries-classicpalette)
  * [Single color](#timeseries-singlecolor)
  * [By value color schemes](#timeseries-byvaluecolorschemes)
  * [Scheme gradient mode](#timeseries-schemegradientmode)

The time series visualization type is the default and primary way to visualize time series data as a graph. It can render series as lines, points, or bars. It is versatile enough to display almost any time-series data.

***

### Tooltip options <a href="#timeseries-tooltipoptions" id="timeseries-tooltipoptions"></a>

Tooltip options control the information overlay that appears when you hover over data points in the graph.

#### Tooltip mode <a href="#timeseries-tooltipmode" id="timeseries-tooltipmode"></a>

When you hover your cursor over the visualization, Algology can display tooltips. Choose how tooltips behave.

* **Single -** The hover tooltip shows only a single series, the one that you are hovering over on the visualization.
* **All -** The hover tooltip shows all series in the visualization. Algology highlights the series that you are hovering over in bold in the series list in the tooltip.
* **Hidden -** Do not display the tooltip when you interact with the visualization.

Use an override to hide individual series from the tooltip.

***

### Legend options <a href="#timeseries-legendoptions" id="timeseries-legendoptions"></a>

Legend options control the series names and statistics that appear under or to the right of the graph.

#### Legend mode <a href="#timeseries-legendmode" id="timeseries-legendmode"></a>

Use these settings to define how the legend appears in your visualization.

* **List -** Displays the legend as a list. This is a default display mode of the legend.
* **Table -** Displays the legend as a table.
* **Hidden -** Hides the legend.

#### Legend placement <a href="#timeseries-legendplacement" id="timeseries-legendplacement"></a>

Choose where to display the legend.

* **Bottom -** Below the graph.
* **Right -** To the right of the graph.

#### Legend values <a href="#timeseries-legendvalues" id="timeseries-legendvalues"></a>

Choose which of the standard calculations to show in the legend. You can have more than one.

***

### Graph styles <a href="#timeseries-graphstyles" id="timeseries-graphstyles"></a>

Use this option to define how to display your time series data. You can use overrides to combine multiple styles in the same graph.

* Lines
* Bars
* Points

#### Bar alignment <a href="#timeseries-baralignment" id="timeseries-baralignment"></a>

Set the position of the bar relative to a data point. In the examples below, **Show points** is set to **Always** which makes it easier to see the difference this setting makes. The points do not change; the bars change in relationship to the points.

* Before  The bar is drawn before the point. The point is placed on the trailing corner of the bar.
* Center  The bar is drawn around the point. The point is placed in the center of the bar. This is the default.
* After  The bar is drawn after the point. The point is placed on the leading corner of the bar.

#### Line width <a href="#timeseries-linewidth" id="timeseries-linewidth"></a>

Line width is a slider that controls the thickness for series lines or the outline for bars.

#### Fill opacity <a href="#timeseries-fillopacity" id="timeseries-fillopacity"></a>

Use opacity to specify the series area fill color.

#### Gradient mode <a href="#timeseries-gradientmode" id="timeseries-gradientmode"></a>

Gradient mode specifies the gradient fill, which is based on the series color.

* **None:** No gradient fill. This is the default setting.
* **Opacity:** An opacity gradient where the opacity of the fill increases as Y-axis values increase.
* **Hue:** A subtle gradient that is based on the hue of the series color.
* **Scheme:** A color gradient defined by your Color scheme.

#### Show points <a href="#timeseries-showpoints" id="timeseries-showpoints"></a>

You can configure your visualization to add points to lines or bars.

* **Auto:** Algology determines to show or not to show points based on the density of the data. If the density is low, then points appear.
* **Always:** Show the points regardless of how dense the data set is.
* **Never:** Do not show points.

#### Point size <a href="#timeseries-pointsize" id="timeseries-pointsize"></a>

Set the size of the points, from 1 to 40 pixels in diameter.

#### Line interpolation <a href="#timeseries-lineinterpolation" id="timeseries-lineinterpolation"></a>

This option controls how the graph interpolates the series line.

* **Linear:** Points are joined by straight lines.
* **Smooth:** Points are joined by curved lines that smooths transitions between points.
* **Step before:** The line is displayed as steps between points. Points are rendered at the end of the step.
* **Step after:** The line is displayed as steps between points. Points are rendered at the beginning of the step.

#### Line style <a href="#timeseries-linestyle" id="timeseries-linestyle"></a>

Set the style of the line. To change the color, use the standard color scheme field option.

* **Solid:** Display a solid line. This is the default setting.
* **Dash:** Display a dashed line. When you choose this option, a list appears for you to select the length and gap (length, gap) for the line dashes. Dash spacing set to 10, 10 (default).
* **Dots:** Display dotted lines. When you choose this option, a list appears for you to select the gap (length = 0, gap) for the dot spacing. Dot spacing set to 0, 10 (default)

#### Connect null values <a href="#timeseries-connectnullvalues" id="timeseries-connectnullvalues"></a>

Choose how null values, which are gaps in the data, appear on the graph. Null values can be connected to form a continuous line or set to a threshold above which gaps in the data are no longer connected.

* **Never:** Time series data points with gaps in the the data are never connected.
* **Always:** Time series data points with gaps in the the data are always connected.
* **Threshold:** Specify a threshold above which gaps in the data are no longer connected. This can be useful when the connected gaps in the data are of a known size and/or within a known range, and gaps outside this range should no longer be connected.

#### Stack series <a href="#timeseries-stackseries" id="timeseries-stackseries"></a>

*Stacking* allows Algology to display series on top of each other. Be cautious when using stacking in the visualization as it can easily create misleading graphs.

* **Off:** Turns off series stacking. When **Off**, all series share the same space in the visualization.
* **Normal:** Stacks series on top of each other.
* **100%:** Stack by percentage where all series add up to 100%.

**Stack series in groups**

The stacking group option is only available as an override.

1. Edit the panel and click **Overrides**.
2. Create a field override for the **Stack series** option.
3. In stacking mode, click **Normal**.
4. Name the stacking group in which you want the series to appear.

   The stacking group name option is only available when you create an override.

#### Fill below to <a href="#timeseries-fillbelowto" id="timeseries-fillbelowto"></a>

The **Fill below to** option fills the area between two series. This option is only available as a series/field override.

1. Edit the panel and click **Overrides**.
2. Select the fields to fill below.
3. In **Add override property**, select **Fill below to**.
4. Select the series for which you want the fill to stop.

***

### Axis options <a href="#timeseries-axisoptions" id="timeseries-axisoptions"></a>

Options under the axis category change how the X and Y axes are rendered. Some options do not take effect until you click outside of the field option box you are editing. You can also or press `Enter`.

#### Placement <a href="#timeseries-placement" id="timeseries-placement"></a>

Select the placement of the Y-axis.

* **Auto:** Automatically assigns the Y-axis to the series. When there are two or more series with different units, Algology assigns the left axis to the first unit and the right axis to the units that follow.
* **Left:** Display all Y-axes on the left side.
* **Right:** Display all Y-axes on the right side.
* **Hidden:** Hide all axes.

To selectively hide axes, Add a field override that targets specific fields.

#### Label <a href="#timeseries-label" id="timeseries-label"></a>

Set a Y-axis text label. If you have more than one Y-axis, then you can assign different labels using an override.

#### Width <a href="#timeseries-width" id="timeseries-width"></a>

Set a fixed width of the axis. By default, Algology dynamically calculates the width of an axis.

By setting the width of the axis, data with different axes types can share the same display proportions. This setting makes it easier for you to compare more than one graph’s worth of data because the axes are not shifted or stretched within visual proximity to each other.

#### Soft min and soft max <a href="#timeseries-softminandsoftmax" id="timeseries-softminandsoftmax"></a>

Set a **Soft min** or **soft max** option for better control of Y-axis limits. By default, Algology sets the range for the Y-axis automatically based on the dataset.

**Soft min** and **soft max** settings can prevent blips from turning into mountains when the data is mostly flat, and hard min or max derived from standard min and max field options can prevent intermittent spikes from flattening useful detail by clipping the spikes past a specific point.

To define hard limits of the Y-axis, You can set standard min/max options.

#### Scale <a href="#timeseries-scale" id="timeseries-scale"></a>

Set the Y-axis values scale.

* **Linear:** Divides the scale into equal parts.
* **Logarithmic:** Use a logarithmic scale. When you select this option, a list appears for you to choose a binary (base 2) or common (base 10) logarithmic scale.

#### Transform <a href="#timeseries-transform" id="timeseries-transform"></a>

Use this option to transform the series values without affecting the values shown in the tooltip, context menu, or legend.

* **Negative Y transform:** Flip the results to negative values on the Y axis.
* **Constant:** Show the first value as a constant line.

Note: The transform option is only available as an override.

***

### Color options <a href="#timeseries-coloroptions" id="timeseries-coloroptions"></a>

By default, the graph uses the standard \[Color scheme]. You can also use the legend to open the color picker by clicking the legend series color icon. Setting color this way automatically creates an override rule that set’s a specific color for a specific series.

#### Classic palette <a href="#timeseries-classicpalette" id="timeseries-classicpalette"></a>

The most common setup is to use the **Classic palette** for graphs. This scheme automatically assigns a color for each field or series based on its order. If the order of a field changes in your query, the color also changes. You can manually configure a color for a specific field using an override rule.

#### Single color <a href="#timeseries-singlecolor" id="timeseries-singlecolor"></a>

Use this mode to specify a color. You can also click the colored line icon next to each series in the Legend to open the color picker. This automatically creates a new override that sets the color scheme to single color and the selected color.

#### By value color schemes <a href="#timeseries-byvaluecolorschemes" id="timeseries-byvaluecolorschemes"></a>

If you select a by value color scheme like **From thresholds (by value)** or **Green-Yellow-Red (by value)**, the **Color series by** option appears. This option controls which value (Last, Min, Max) to use to assign the series its color.

#### Scheme gradient mode <a href="#timeseries-schemegradientmode" id="timeseries-schemegradientmode"></a>

The **Gradient mode** option located under the **Graph styles** has a mode named **Scheme**. When you enable **Scheme**, the line or bar receives a gradient color defined from the selected **Color scheme**.

**From thresholds**

If the **Color scheme** is set to **From thresholds (by value)** and **Gradient mode** is set to **Scheme**, then the line or bar color changes as they cross the defined thresholds.

***
