# Line

The Line chart represents a series of data as a line or multiple lines, plotted across time or another numerical dimension.

| Features                                                                               | Quantity | Notes                                      |
| -------------------------------------------------------------------------------------- | -------- | ------------------------------------------ |
| Required [Dimensions](https://docs.heavy.ai/v8.3.0/measures-and-dimensions#dimensions) | 1-2      | Dimension 1 = X Axis, Dimension 2 = Series |
| Required [Measures](https://docs.heavy.ai/v8.3.0/measures-and-dimensions#measures)     | 1        | Measure 1 = Y Axis.                        |

The optional multi-series capability of the Line chart can break out values by an additional dimension.

## Line Chart Examples

Create a new Line chart. Choose a **Data Source**. This example uses the official database of [UFO sightings](https://github.com/planetsig/ufo-reports/tree/master/csv-data)

Categorize UFO sightings on the **Dimension** *sighting\_time* and set the **Measure** to the number of records (the number of sightings).

<figure><img src="https://1128335264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xvZtvY4UaNnTQRXqbwd%2Fuploads%2Fgit-blob-d9f5e5e51d65641bf7017a3c7adb7181dc37bebd%2FSS_70.jpg?alt=media" alt=""><figcaption></figcaption></figure>

Adding the **Dimension** *shape* displays a separate line for each sighting type across time.

<figure><img src="https://1128335264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xvZtvY4UaNnTQRXqbwd%2Fuploads%2Fgit-blob-88f2cdbcc883905290b40ebdaf2dcf11533c2203%2FSS_71.jpg?alt=media" alt=""><figcaption></figcaption></figure>

The records go back to 1905, with very few recorded sightings. Selecting a more recent 10-year block presents information in a more digestible form. For an ad hoc report, you can brush across values in the Range Chart to filter a smaller number of data points, or you can enter start and end dates on the x axis for precise values.

<figure><img src="https://1128335264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xvZtvY4UaNnTQRXqbwd%2Fuploads%2Fgit-blob-a0c75ae2d6130ae65ec6abbb1b0f4f407e0deec1%2FSS_72.jpg?alt=media" alt=""><figcaption></figcaption></figure>

When you set the x axis to a date/time value, you have the option of setting the intervals to month, quarter, or year. Setting the **BIN** to **1y** can make the values easier to discern.

<figure><img src="https://1128335264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xvZtvY4UaNnTQRXqbwd%2Fuploads%2Fgit-blob-d617cedf658a155477396baa075a00bfebd26240%2FSS_73.jpg?alt=media" alt=""><figcaption></figcaption></figure>

You can change from a line chart to an area chart, adding more contrast to make the differences between the values more apparent.

<figure><img src="https://1128335264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xvZtvY4UaNnTQRXqbwd%2Fuploads%2Fgit-blob-6a8dd4c52d6c821c9a4d0b7ea4c21fb8d9cd4b75%2FSS_74.jpg?alt=media" alt=""><figcaption></figcaption></figure>

You can also reduce the number of series displayed by removing their entries from the **COLOR PALETTE**.

<figure><img src="https://1128335264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xvZtvY4UaNnTQRXqbwd%2Fuploads%2Fgit-blob-a28cc382b6caeda3b2143670739c3ab66a6be359%2FSS_75.jpg?alt=media" alt=""><figcaption></figcaption></figure>

After you reduce the scope of the chart, you can change the labels on the axes and the chart title to reflect the current state of the information.

<figure><img src="https://1128335264-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xvZtvY4UaNnTQRXqbwd%2Fuploads%2Fgit-blob-30357eafacacefecd39ac89020eaa004cda6d1d6%2FSS_76.jpg?alt=media" alt=""><figcaption></figcaption></figure>
