# chart-manufacturing-quality-monitoring

> Manufacturing dashboard with dual-axis chart tracking hourly production and defects.

**Framework:** vue  **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/vue/chart-manufacturing-quality-monitoring.json
```

**Install Package(s)**

```bash
npm install @syncfusion/ej2-vue-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/ManufacturingQualityMonitoring.vue

```vue
<template>
    <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>
</template>

<script setup lang="ts">
import { provide } from 'vue';
import {
    ChartComponent as EjsChart,
    SeriesCollectionDirective as ESeriesCollection,
    SeriesDirective as ESeries,
    ColumnSeries,
    SplineSeries,
    Category,
    Tooltip,
    Legend,
    DataLabel,
    Crosshair,
    StripLine,
    type AxisModel,
    type TooltipSettingsModel,
    type CrosshairSettingsModel,
    type LegendSettingsModel,
    type ChartAreaModel,
    type MarginModel,
    type MarkerSettingsModel,
    type AnimationModel
} from '@syncfusion/ej2-vue-charts';

provide('chart', [ColumnSeries, SplineSeries, Category, Tooltip, Legend, DataLabel, Crosshair, StripLine]);

interface ProductionData {
    hour: string;
    production: number;
    defectRate: number;
}

const 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 }
];

const 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'
        }
    ]
};

const 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'
        }
    ]
};

const 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'
            }
        ]
    }
];

const tooltip: TooltipSettingsModel = { enable: true, shared: true, showNearestTooltip: true };

const crosshair: CrosshairSettingsModel = {
    enable: true,
    lineType: 'Both',
    line: { color: '#94A3B8', width: 1, dashArray: '3,3' }
};

const legendSettings: LegendSettingsModel = {
    visible: true,
    position: 'Bottom',
    alignment: 'Center',
    padding: 15,
    textStyle: { size: '14px', color: '#64748b' }
};

const chartArea: ChartAreaModel = { border: { width: 0 } };

const margin: MarginModel = { left: 10, right: 10, top: 10, bottom: 5 };

const productionMarker: MarkerSettingsModel = {
    dataLabel: {
        visible: true,
        position: 'Top',
        font: { color: '#2563EB', fontWeight: '600', size: '12px' }
    }
};

const defectMarker: MarkerSettingsModel = {
    visible: true,
    width: 8,
    height: 8,
    shape: 'Circle',
    fill: '#ffffff',
    border: { color: '#F01446', width: 2 }
};

const animation: AnimationModel = { enable: false };
</script>

<style>
.manufacturing-chart {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: Arial, sans-serif;
}

.manufacturing-chart .sample-title {
    text-align: center;
    color: #1e293b;
    font-size: 26px;
    font-weight: 600;
    margin: 8px 0 4px;
}

.manufacturing-chart .sample-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.manufacturing-chart .sample-footer {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .manufacturing-chart {
        padding: 8px;
    }

    .manufacturing-chart .sample-title {
        font-size: 19px;
    }
}
</style>

```
