---
title: "Pie ViewHelper <c:chart.line>"
manual: "SAV Charts"
version: "14.7"
source: "Reference/FluidParserViewHelpers/Chart/LineViewHelper/Index.rst"
rendered: "2026-09-17T13:01:15+00:00"
---

# Pie ViewHelper \<c:chart.line> {#pie-viewhelper-c-chart-line}

ViewHelper to include a line chart with `Charts.js`.

Go to the source code of this ViewHelper:
[LineViewHelper.php](https://github.com/YolfTypo3/SavCharts/blob/main/Classes/ViewHelpers/Chart/LineViewHelper.php) (GitHub).

## Quick Test {#quick-test}

```xml
<c:template id="1">
EXT:sav_charts/Resources/Private/Templates/ChartsExamples/FluidParser/LineChart.fluid"
</c:template>
```

![](../../../../Images/ScreenShots/Charts/lineChart.png)

## Arguments {#arguments}

-   **id**

    -   *Required:* true
    -   *Type:* string

    Chart ID

-   **data**

    -   *Required:* true
    -   *Type:* mixed

    Data, or a reference to data

-   **options**

    -   *Type:* mixed

    Options, or a reference to options

-   **width**

    -   *Type:* string
    -   *Default:* 600

    Width value, or a reference to the width value

-   **height**

    -   *Type:* string
    -   *Default:* 400

    Height value, or a reference to the height value

## Examples {#examples}

### Defining a Line Chart {#defining-a-line-chart}

```xml
<c:charts>
    <c:chart.line id="1" data="data__lineChartData" options="data__lineChartOptions" >
        ...
    </c:chart.line>
</c:charts>
```
