# chart-manufacturing-quality-monitoring

> Manufacturing quality monitoring chart tracks hourly production and defect-rate trends.

**Framework:** react  **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/react/ts/chart-manufacturing-quality-monitoring.json
```

**Install Package(s)**

```bash
npm install @syncfusion/ej2-react-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/Chart.tsx

```tsx

import {
    ChartComponent,
    SeriesCollectionDirective,
    SeriesDirective,
    Inject,
    ColumnSeries,
    SplineSeries,
    Category,
    Tooltip,
    Legend,
    DataLabel,
    Crosshair,
    StripLine
} from '@syncfusion/ej2-react-charts';

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 SAMPLE_CSS = `
    .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;
        }
    }
`;

const App = () => {
    return (
        <div className="control-pane manufacturing-chart">
            <style>{SAMPLE_CSS}</style>

            <div className="sample-title">
                Manufacturing Production and Quality Monitoring
            </div>

            <div className="sample-subtitle">
                Hourly production output and defect rate analysis
            </div>

            <div className="control-section">
                <ChartComponent
                    id="manufacturing-quality-chart"
                    width="100%"
                    height="540px"
                    background="transparent"
                    primaryXAxis={{
                        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'
                            }
                        ]
                    }}
                    primaryYAxis={{
                        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'
                            }
                        ]
                    }}
                    axes={[
                        {
                            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'
                                }
                            ]
                        }
                    ]}
                    tooltip={{
                        enable: true,
                        shared: true,
                        showNearestTooltip: true
                    }}
                    crosshair={{
                        enable: true,
                        lineType: 'Both',
                        line: {
                            color: '#94A3B8',
                            width: 1,
                            dashArray: '3,3'
                        }
                    }}
                    legendSettings={{
                        visible: true,
                        position: 'Bottom',
                        alignment: 'Center',
                        padding: 15,
                        textStyle: {
                            size: '14px',
                            color: '#64748b'
                        }
                    }}
                    chartArea={{
                        border: { width: 0 }
                    }}
                    margin={{
                        left: 10,
                        right: 10,
                        top: 10,
                        bottom: 5
                    }}
                >
                    <Inject services={[
                        ColumnSeries,
                        SplineSeries,
                        Category,
                        Tooltip,
                        Legend,
                        DataLabel,
                        Crosshair,
                        StripLine
                    ]} />

                    <SeriesCollectionDirective>
                        <SeriesDirective
                            dataSource={productionData}
                            xName="hour"
                            yName="production"
                            name="Production Output"
                            type="Column"
                            fill="#3B82F6"
                            columnWidth={0.45}
                            columnSpacing={0.15}
                            marker={{
                                dataLabel: {
                                    visible: true,
                                    position: 'Top',
                                    font: {
                                        color: '#2563EB',
                                        fontWeight: '600',
                                        size: '12px'
                                    }
                                }
                            }}
                            animation={{ enable: false }}
                        />

                        <SeriesDirective
                            dataSource={productionData}
                            xName="hour"
                            yName="defectRate"
                            name="Defect Rate"
                            type="Spline"
                            yAxisName="DefectRate"
                            fill="#F01446"
                            width={3}
                            marker={{
                                visible: true,
                                width: 8,
                                height: 8,
                                shape: 'Circle',
                                fill: '#ffffff',
                                border: {
                                    color: '#F01446',
                                    width: 2
                                }
                            }}
                            animation={{ enable: false }}
                        />
                    </SeriesCollectionDirective>
                </ChartComponent>
            </div>

            <div className="sample-footer">
                The shaded region represents the maintenance period. Target lines indicate
                production and quality thresholds.
            </div>
        </div>
    );
};

export default App;

```
