# chart-default

> Multi-series line chart tracking crude steel volumes by country from 2016-2024 via ChartAllModule.

**Framework:** angular  **Component:** Chart  **Variant:** default

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/angular/chart-default.json
```

**Install Package(s)**

```bash
npm install @syncfusion/ej2-angular-charts
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/chart-default/chart.component.html

```html
<div class="chart-container" style="padding: 70px; margin: 0 auto;">
  <ejs-chart id="chart-container" [primaryXAxis]="primaryXAxis" [primaryYAxis]="primaryYAxis" [chartArea]="chartArea"
    [width]="width" [title]="title" [subTitle]="subTitle" [tooltip]="tooltip" [legendSettings]="legendSettings"
    [annotations]="annotations" (load)="load($event)">
    <e-series-collection>
      <e-series [dataSource]="vietnamData" type="Line" xName="x" yName="y" name="Vietnam" width="2"
        [marker]="circleMarker" [labelSettings]="labelSettings"></e-series>

      <e-series [dataSource]="indonesiaData" type="Line" xName="x" yName="y" name="Indonesia" width="2"
        [marker]="triangleMarker" [labelSettings]="labelSettings"></e-series>

      <e-series [dataSource]="franceData" type="Line" xName="x" yName="y" name="France" width="2"
        [marker]="diamondMarker" [labelSettings]="labelSettings"></e-series>

      <e-series [dataSource]="polandData" type="Line" xName="x" yName="y" name="Poland" width="2"
        [marker]="rectangleMarker" [labelSettings]="labelSettings"></e-series>

      <e-series [dataSource]="mexicoData" type="Line" xName="x" yName="y" name="Mexico" width="2"
        [marker]="pentagonMarker" [labelSettings]="labelSettings"></e-series>
    </e-series-collection>
  </ejs-chart>

</div>
```

### src/components/chart-default/chart.component.ts

```typescript
import { Component } from '@angular/core';
import { Browser } from '@syncfusion/ej2-base';
import {
  ChartAllModule,
  ILoadedEventArgs,
  ChartTheme
} from '@syncfusion/ej2-angular-charts';

interface ChartPoint {
  x: number;
  y: number;
}

@Component({
  selector: 'app-chart',
  standalone: true,
  imports: [ChartAllModule],
  templateUrl: './chart.component.html'
})
export class ChartComponent {
  public vietnamData: ChartPoint[] = [
    { x: 2016, y: 7.8 },
    { x: 2017, y: 10.3 },
    { x: 2018, y: 15.5 },
    { x: 2019, y: 17.5 },
    { x: 2020, y: 19.5 },
    { x: 2021, y: 23.0 },
    { x: 2022, y: 20.0 },
    { x: 2023, y: 19.0 },
    { x: 2024, y: 22.1 }
  ];

  public indonesiaData: ChartPoint[] = [
    { x: 2016, y: 4.8 },
    { x: 2017, y: 5.2 },
    { x: 2018, y: 6.2 },
    { x: 2019, y: 7.8 },
    { x: 2020, y: 9.3 },
    { x: 2021, y: 14.3 },
    { x: 2022, y: 15.6 },
    { x: 2023, y: 16.0 },
    { x: 2024, y: 17.0 }
  ];

  public franceData: ChartPoint[] = [
    { x: 2016, y: 14.6 },
    { x: 2017, y: 15.5 },
    { x: 2018, y: 15.4 },
    { x: 2019, y: 14.4 },
    { x: 2020, y: 11.6 },
    { x: 2021, y: 13.9 },
    { x: 2022, y: 12.1 },
    { x: 2023, y: 10.0 },
    { x: 2024, y: 10.8 }
  ];

  public polandData: ChartPoint[] = [
    { x: 2016, y: 8.9 },
    { x: 2017, y: 10.3 },
    { x: 2018, y: 10.8 },
    { x: 2019, y: 9.0 },
    { x: 2020, y: 7.9 },
    { x: 2021, y: 8.5 },
    { x: 2022, y: 7.4 },
    { x: 2023, y: 6.4 },
    { x: 2024, y: 7.1 }
  ];

  public mexicoData: ChartPoint[] = [
    { x: 2016, y: 19.0 },
    { x: 2017, y: 20.0 },
    { x: 2018, y: 20.2 },
    { x: 2019, y: 18.4 },
    { x: 2020, y: 16.8 },
    { x: 2021, y: 18.5 },
    { x: 2022, y: 18.4 },
    { x: 2023, y: 16.3 },
    { x: 2024, y: 13.7 }
  ];

  public primaryXAxis: Object = {
    valueType: 'Double',
    interval: 1,
    minimum: 2016,
    maximum: 2024,
    majorGridLines: { width: 0 },
    edgeLabelPlacement: 'Shift'
  };

  public primaryYAxis: Object = {
    title: 'Volume in million metric tons',
    minimum: 0,
    maximum: 25,
    interval: 5,
    labelFormat: '{value}%',
    lineStyle: { width: 0 },
    majorTickLines: { width: 0 }
  };

  public chartArea: Object = {
    border: { width: 0 }
  };

  public circleMarker: Object = {
    visible: true,
    width: 7,
    height: 7,
    isFilled: true,
    shape: 'Circle'
  };

  public triangleMarker: Object = {
    visible: true,
    width: 6,
    height: 6,
    isFilled: true,
    shape: 'Triangle'
  };

  public diamondMarker: Object = {
    visible: true,
    width: 7,
    height: 7,
    isFilled: true,
    shape: 'Diamond'
  };

  public rectangleMarker: Object = {
    visible: true,
    width: 5,
    height: 5,
    isFilled: true,
    shape: 'Rectangle'
  };

  public pentagonMarker: Object = {
    visible: true,
    width: 7,
    height: 7,
    isFilled: true,
    shape: 'Pentagon'
  };

  public tooltip: Object = {
    enable: true,
    shared: true,
    format: '${series.name}: <b>${point.y}%</b>'
  };

  public legendSettings: Object = {
    visible: true,
    enableHighlight: true
  };

  public labelSettings: Object = {
    visible: true
  }

  public annotations: Object[] = [];

  public title = 'Annual Crude Steel Production by Country (2016–2024)';
  public subTitle = 'Source: wikipedia.org"';
  public width = Browser.isDevice ? '100%' : '75%';

  public load(args: ILoadedEventArgs): void {
    const selectedTheme = location.hash.split('/')[1];
    const theme = selectedTheme ? selectedTheme : 'Material';
    args.chart.theme = (theme.charAt(0).toUpperCase() + theme.slice(1))
      .replace(/-dark/i, 'Dark')
      .replace(/contrast/i, 'Contrast') as ChartTheme;
  }
}

```
