# Build a Multi-Line Chart

## **What is a multi-line chart** <a href="#h_0fdd078aef" id="h_0fdd078aef"></a>

A multi-line chart is a type of cartesian chart that displays information as multiple series of data points connected by straight line segments progressing over a period of time.

There are two types of multi-line chart:

1. **Single entity**: it shows the evolution of multiple values of the same entity over time (for example, by comparing the average price of different products in a given time range).
2. **Multiple entity:** it shows the evolution of more entities over time (for example, by comparing for example revenues and costs of a product).

## **When it’s used** <a href="#h_dfcf5ec172" id="h_dfcf5ec172"></a>

Similar to the [single line chart ](/crystal-console/topics-configuration/visualizations/single-line.md)because they are both based on time, the multiple line chart adds on top of the time also the comparison between entities or values: it offers a more complex visualization with more insights and it can be, therefore, more complex to read and configure.

It is used to show and compare data changes at equal intervals of time, like for monitoring multiple numerical data (e.g. sales, impressions, users, count number of categories…) over a period of time.

This chart is available only when an **over time objective** is selected: this objective shows the evolution of two or more data sets in a given amount of time. For example if each line of the visualization represents a country, you would have the opportunity to compare sales across different countries over time.

![](https://crystal-1aa63e8abb35.intercom-attachments-7.com/i/o/362793218/3cd98cb9162388b4eed8041d/m1Wtt5yL5baQenPA7UxqCTKFUizoXTSuPPzm8LAMSvvgy8_sWWe5paTUBEhxRFQzzmalwl2-8uCjKb21iLfxWV4OpbU-cY3Y3mbkSeAUoJhztGd28CBu5q_CAeQbRHKKTLWu7bC9)

Remember that if you need to show the evolution of a measure within a category (strings, text or words instead of numbers, dates or time), you must use a column chart.

If you want to know more about objectives and visualizations, check out [**Objectives and visualizations: what they are and how they work.**](/crystal-console/topics-configuration/configure/objectives-and-visualizations.md)

## **How to configure a single entity multiple line chart** <a href="#h_2b73f4f296" id="h_2b73f4f296"></a>

In order to build a single entity multiple line chart, you have to select a data table that includes at least one column with times series data type, to show how an item evolves over time.

![](https://crystal-1aa63e8abb35.intercom-attachments-7.com/i/o/362793232/51b62211d5d55359bf5c1a00/ehfY7iQJVJdDxLedHJ-eoPRNsvlIzq_pi1aychvXNUKH_8y82A9v8RqacoHrxtMbuHzshBg7tNbY2luVkiM6-msuu9V2Nc_wiWYUyDZLdA4tAfb1CAK8H3f9E4D8Go_qkxm4O7fL)

The **Y-axis** will indicate the data source column from which you are getting the insight (e.g. sales or product). The **X-axis** will indicate the given period of time you want to monitor (e.g. month or year).

The **category** will indicate the breakdown you want to get (for example, if your Y axis is product, you can select “product categories”).

For some categories, if you have numeric values, you will need to set up a data bin. See [here](/crystal-console/topics-configuration/configure/data-binning.md) how to do it.

The result of this configuration will be a visualization where the different categories will be shown with different colored lines, that might not be continuous in case there are gaps (for example data related to days or weeks that are missing).

![](https://crystal-1aa63e8abb35.intercom-attachments-7.com/i/o/362793236/9655c9287dcd6bc4cb5d64f9/Lkn2KkdaNPitvCcHzr-C5BJWjCVFdVmO2QGz_JfDRvBGFXlePt9BB15avVXuCBMrx9Ta4mwZXGax3jIDb0v-ScwchF-moEbZlaoorNCOsyOFAs4GCHoRNdIzEN2gassy78zoYaLZ)

## **How to configure a multi entity multiple line chart** <a href="#h_ff3cda37f6" id="h_ff3cda37f6"></a>

This chart will allow you to have different columns from the data source on the Y axis.

![](https://crystal-1aa63e8abb35.intercom-attachments-7.com/i/o/362793241/633bde57d6e46e0a93ee169f/Fxd4PqFtxtoghgOE9wvzSISyl64zFTAyTBgmX26YRGoaxTKpZspBlUH85hBPfD5D9oTTsWrgVSenyN3QdY8jMftTgHOJy3KLZ6q14lhYPpheZHIeQ2UYh_pfYX0ow8f87CUmBwvH)

You will have the opportunity to have a more granular view of your insight: given that your main entity is product, you can see for example a comparison between revenues and costs for the given product.

![](https://crystal-1aa63e8abb35.intercom-attachments-7.com/i/o/362793244/d41d2bcfcc2f55c7ce2db0ea/h_OGxQeRIA8z8xImMdzO9q_ZOl6qgtO_s1yxlbvCrQW5hZ6n6zXqGa1mC0MQzmTdHRyzaZQhyapnoFnMqpgDik4YZ8P7FmOfS4ELhAD4MKR2wFnppkfXoV4YkdSSq5WEnpNbBzOh)

The result of this configuration will be a visualization where the different categories will be shown with different colored lines.

![](https://crystal-1aa63e8abb35.intercom-attachments-7.com/i/o/362793247/0b0f28e0e7b48faea2344bfa/OOsgl865YFIUo3e-Zq0iQWJXyga5FVDA0iQdDAQxjg9vYaoBQqtE06N5EZ9JnoiH9m262j43pVuKyb0-TLDoJzDholnOoa7GpgGWXLCz_DGbKPmpYNCYqso02hvgr1hIfjec9rPr)

The multiple line chart visualization is helpful if you want to make a comparison between two or more values, for example if you need to compare sales across different countries over time.

We hope that this article helped you! Do you want to know how to build a list table? Check [this](/crystal-console/topics-configuration/visualizations/list-table.md) out!

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.igenius.ai/crystal-console/topics-configuration/visualizations/multi-line.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
