# Line & Bar Chart

Once you get to the visualization tab with the function code results, you can see the line & bar is activated by default.&#x20;

Each **series** corresponds to a function. For example, if you set 5 functions, then you will see 5 series of lines constitute a chart. The `X-axis` of the chart is **time** and the `Y-axis` is **value**(or any other column of which the values are the numbers).

{% hint style="warning" %}
Line & bar type assumes that every function result is a time-series with **time** and **value** columns only. If your function result has columns other than time and value, we advise you to use **table** type instead.&#x20;
{% endhint %}

***

## Series options

Series options are the configures applied to each function.

### Line or Bar

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2FCPHOuD4aWRX7zC7yoK87%2Fimage.png?alt=media\&token=ca4afcc4-0923-4cc9-a550-14fab3daed40)

You can choose to display each function as a chart, and you can choose the chart type (**line** or **bar**).

### Z-index

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2FrEKZdKlIRltpHkQY3vcJ%2Fimage.png?alt=media\&token=b04ef232-cfc5-4114-9158-a163492568ca)

You can choose the order of the chart displayed. The larger the z-index, the more forward the chart is displayed.

### Y-index

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2FRhl56cgi29hPAL2eaEI3%2Fimage.png?alt=media\&token=ebce3890-b7d0-49ab-a203-bbbf442498cb)

You can choose which Y-axis the function belongs to. The functions with the same Y-index will share the same Y-axis. This option is available only when [multiple Y-axis](#multiple-y-axis) option is activated. It can be chosen from 1 to 3.

***

## Common options

Common options are the options that affects the chart and every series.

### Line Stack

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2Fjul6UAgsAEwQqkTMwTTW%2Fimage.png?alt=media\&token=43098e39-cac2-4e18-bcc4-48488dbcdf68)

Line stack is a chart setting that stacks multiple lines on top of each other. When line stack is turned on, all lines are stacked.

### Bar Stack

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2FZErolrBPm9Zh9iG5vcpk%2Fimage.png?alt=media\&token=025d3e06-f43c-48f2-8641-753e0095b511)

Bar stack is a chart setting that allows you to stack multiple bars on top of each other. When bar stack is turned on, all bars are stacked.

### Multiple Y-axis

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2FOwUZEPWcvLFvIZ0IsW8A%2Fimage.png?alt=media\&token=753c8dd9-7208-4f40-a649-768668431864)

Multiple Y-axis is a chart setting that allows you to plot multiple Y-axes on the same chart. This is useful for comparing the values of different variables on the same scale.

### Hide Y-axis

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2FyOMcZvAUPsSCep9IPUs7%2Fimage.png?alt=media\&token=f1d4d996-0c86-4fec-888b-f57e286a09d1)

Hide Y-axis is a chart setting that allows you to hide one or more Y-axes on a chart. This is useful for when you only want to focus on a specific variable, or when you want to simplify the chart.

### Line Width

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2FwW0mfT56ZGf4vbL1wg7E%2Fimage.png?alt=media\&token=2cc280f8-e21b-426d-9d62-70b5ba580a0b)

You can adjust the width of the line chart.

### Bar Width

![](https://209745228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRB9zlm2euYUzs82cWD4l%2Fuploads%2FwQcjxGZvls4bxuKwwUmg%2Fimage.png?alt=media\&token=17e545f3-c7b6-48de-882d-f1ffc3a22df3)

You can adjust the width of the bar chart.
