# chart-manufacturing-quality-monitoring

> Manufacturing dashboard with dual-axis chart tracking hourly production output and defect rates.

**Framework:** angular  **Component:** Chart  **Variant:** manufacturing-quality-monitoring

## 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-manufacturing-quality-monitoring.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-manufacturing-quality-monitoring/manufacturing-quality-monitoring.component.html

```html
<div class="control-pane manufacturing-chart">
    <div class="sample-title">
        Manufacturing Production and Quality Monitoring
    </div>

    <div class="sample-subtitle">
        Hourly production output and defect rate analysis
    </div>

    <div class="control-section">
        <ejs-chart id="manufacturing-quality-chart" width="100%" height="540px" background="transparent"
            [primaryXAxis]="primaryXAxis" [primaryYAxis]="primaryYAxis" [axes]="axes"
            [tooltip]="tooltip" [crosshair]="crosshair" [legendSettings]="legendSettings"
            [chartArea]="chartArea" [margin]="margin">
            <e-series-collection>
                <e-series [dataSource]="productionData" xName="hour" yName="production" name="Production Output"
                    type="Column" fill="#3B82F6" [columnWidth]="0.45" [columnSpacing]="0.15"
                    [marker]="productionMarker" [animation]="animation"></e-series>

                <e-series [dataSource]="productionData" xName="hour" yName="defectRate" name="Defect Rate"
                    type="Spline" yAxisName="DefectRate" fill="#F01446" [width]="3"
                    [marker]="defectMarker" [animation]="animation"></e-series>
            </e-series-collection>
        </ejs-chart>
    </div>

    <div class="sample-footer">
        The shaded region represents the maintenance period. Target lines indicate
        production and quality thresholds.
    </div>
</div>

```

### src/components/chart-manufacturing-quality-monitoring/manufacturing-quality-monitoring.component.ts

```typescript
import { Component, ViewEncapsulation } from '@angular/core';
import {
    ChartModule,
    ColumnSeriesService,
    SplineSeriesService,
    CategoryService,
    TooltipService,
    LegendService,
    DataLabelService,
    CrosshairService,
    StripLineService,
    type AxisModel,
    type TooltipSettingsModel,
    type CrosshairSettingsModel,
    type LegendSettingsModel,
    type ChartAreaModel,
    type MarginModel,
    type MarkerSettingsModel,
    type AnimationModel
} from '@syncfusion/ej2-angular-charts';

interface ProductionData {
    hour: string;
    production: number;
    defectRate: number;
}

@Component({
    selector: 'app-manufacturing-quality-monitoring',
    standalone: true,
    imports: [ChartModule],
    providers: [
        ColumnSeriesService, SplineSeriesService, CategoryService, TooltipService,
        LegendService, DataLabelService, CrosshairService, StripLineService
    ],
    templateUrl: './manufacturing-quality-monitoring.component.html',
    styleUrls: ['../styles/manufacturing-quality-monitoring.component.css'],
    encapsulation: ViewEncapsulation.None
})
export class ManufacturingQualityMonitoringComponent {
    public productionData: ProductionData[] = [
        { hour: '08:00', production: 420, defectRate: 1.2 },
        { hour: '09:00', production: 460, defectRate: 1.5 },
        { hour: '10:00', production: 510, defectRate: 1.8 },
        { hour: '11:00', production: 540, defectRate: 1.6 },
        { hour: '12:00', production: 380, defectRate: 3.1 },
        { hour: '13:00', production: 430, defectRate: 2.6 },
        { hour: '14:00', production: 570, defectRate: 1.9 },
        { hour: '15:00', production: 620, defectRate: 1.4 }
    ];

    public primaryXAxis: AxisModel = {
        valueType: 'Category',
        title: 'Production Hours',
        majorGridLines: { width: 0 },
        majorTickLines: { width: 1 },
        lineStyle: { width: 1, color: '#bdbdbd' },
        labelStyle: { color: '#64748b' },
        stripLines: [
            {
                start: 3.95,
                end: 4.95,
                color: '#F59E0B',
                opacity: 0.14,
                text: 'Maintenance Period',
                rotation: -90,
                horizontalAlignment: 'Middle',
                verticalAlignment: 'Middle',
                textStyle: { color: '#B45309', fontWeight: '600', size: '12px' },
                zIndex: 'Behind'
            }
        ]
    };

    public primaryYAxis: AxisModel = {
        minimum: 0,
        maximum: 700,
        interval: 100,
        title: 'Production Output (Units)',
        majorGridLines: { width: 1, color: '#dbe4f0', dashArray: '3,3' },
        lineStyle: { width: 1, color: '#bdbdbd' },
        labelStyle: { color: '#64748b' },
        stripLines: [
            {
                start: 498,
                end: 503,
                color: '#22C55E',
                opacity: 0.18,
                text: 'Production Target: 500 Units',
                horizontalAlignment: 'End',
                verticalAlignment: 'Middle',
                textStyle: { color: '#008B55', fontWeight: '600', size: '12px' },
                zIndex: 'Over'
            }
        ]
    };

    public axes: AxisModel[] = [
        {
            name: 'DefectRate',
            opposedPosition: true,
            minimum: 0,
            maximum: 5,
            interval: 1,
            title: 'Defect Rate (%)',
            labelFormat: '{value}%',
            majorGridLines: { width: 0 },
            lineStyle: { width: 1, color: '#bdbdbd' },
            majorTickLines: { width: 1 },
            labelStyle: { color: '#64748b' },
            stripLines: [
                {
                    start: 1.95,
                    end: 2.05,
                    color: '#EF4444',
                    opacity: 0.2,
                    text: 'Maximum Defect Rate: 2%',
                    horizontalAlignment: 'End',
                    verticalAlignment: 'Middle',
                    textStyle: { color: '#EF4444', fontWeight: '600', size: '12px' },
                    zIndex: 'Over'
                }
            ]
        }
    ];

    public tooltip: TooltipSettingsModel = { enable: true, shared: true, showNearestTooltip: true };

    public crosshair: CrosshairSettingsModel = {
        enable: true,
        lineType: 'Both',
        line: { color: '#94A3B8', width: 1, dashArray: '3,3' }
    };

    public legendSettings: LegendSettingsModel = {
        visible: true,
        position: 'Bottom',
        alignment: 'Center',
        padding: 15,
        textStyle: { size: '14px', color: '#64748b' }
    };

    public chartArea: ChartAreaModel = { border: { width: 0 } };

    public margin: MarginModel = { left: 10, right: 10, top: 10, bottom: 5 };

    public productionMarker: MarkerSettingsModel = {
        dataLabel: {
            visible: true,
            position: 'Top',
            font: { color: '#2563EB', fontWeight: '600', size: '12px' }
        }
    };

    public defectMarker: MarkerSettingsModel = {
        visible: true,
        width: 8,
        height: 8,
        shape: 'Circle',
        fill: '#ffffff',
        border: { color: '#F01446', width: 2 }
    };

    public animation: AnimationModel = { enable: false };
}

```
