{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "chart-combination-chart",
  "framework": "angular",
  "type": "registry:component",
  "component": "Chart",
  "variant": "combination-chart",
  "dependencies": [
    "@syncfusion/ej2-angular-charts"
  ],
  "description": "Multi-series combination chart with spline area, column series, and custom legend with April promotion strip line.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/angular/llms.txt",
    "skillPack": "syncfusion/angular-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/angular/chart-combination-chart.md"
  },
  "files": [
    {
      "target": "src/components/chart-combination-chart/combination-chart.component.html",
      "content": "<div class=\"business-performance\">\n    <div class=\"business-chart-title\">\n        Business Revenue, Profit and Order Performance\n    </div>\n\n    <div class=\"business-chart-subtitle\">\n        Monthly performance analysis | January – June 2024\n    </div>\n\n    <ejs-chart id=\"business-performance-chart\" height=\"500px\" width=\"100%\" background=\"transparent\"\n        [primaryXAxis]=\"primaryXAxis\" [primaryYAxis]=\"primaryYAxis\"\n        [tooltip]=\"tooltip\" [crosshair]=\"crosshair\" [legendSettings]=\"legendSettings\"\n        [chartArea]=\"chartArea\" (legendRender)=\"legendRender($event)\">\n        <e-axes>\n            <e-axis name=\"ordersAxis\" [opposedPosition]=\"true\" [minimum]=\"0\" [maximum]=\"600\" [interval]=\"100\"\n                title=\"Orders (Count)\" [majorGridLines]=\"zeroLine\" [majorTickLines]=\"zeroLine\"\n                [lineStyle]=\"zeroLine\"></e-axis>\n        </e-axes>\n\n        <e-series-collection>\n            <!-- Revenue - Spline -->\n            <e-series [dataSource]=\"businessData\" xName=\"month\" yName=\"revenue\" name=\"Revenue\" type=\"Spline\"\n                [width]=\"2.5\" fill=\"#1683ed\" [marker]=\"revenueMarker\"></e-series>\n\n            <!-- Profit - Spline Area -->\n            <e-series [dataSource]=\"businessData\" xName=\"month\" yName=\"profit\" name=\"Profit\" type=\"SplineArea\"\n                [width]=\"2\" fill=\"#16a765\" [opacity]=\"0.20\" [border]=\"profitBorder\"\n                [marker]=\"profitMarker\"></e-series>\n\n            <!-- Orders - Column -->\n            <e-series [dataSource]=\"businessData\" xName=\"month\" yName=\"orders\" name=\"Orders\" type=\"Column\"\n                yAxisName=\"ordersAxis\" fill=\"#9747ff\" [columnWidth]=\"0.5\" [columnSpacing]=\"0.2\"></e-series>\n        </e-series-collection>\n    </ejs-chart>\n\n    <div style=\"text-align: center; color: #64748b; font-size: 11px; margin-top: 4px;\">\n        April represents the promotional campaign period.\n        The orange strip line indicates the $80K revenue target.\n    </div>\n</div>\n"
    },
    {
      "target": "src/components/chart-combination-chart/combination-chart.component.ts",
      "content": "import { Component, ViewEncapsulation } from '@angular/core';\nimport {\n    ChartModule,\n    CategoryService,\n    SplineSeriesService,\n    SplineAreaSeriesService,\n    ColumnSeriesService,\n    LegendService,\n    TooltipService,\n    CrosshairService,\n    StripLineService,\n    DataLabelService,\n    type AxisModel,\n    type LegendSettingsModel,\n    type MarkerSettingsModel,\n    type TooltipSettingsModel,\n    type CrosshairSettingsModel,\n    type ChartAreaModel,\n    type BorderModel,\n    type ILegendRenderEventArgs\n} from '@syncfusion/ej2-angular-charts';\n\ninterface BusinessData {\n    month: string;\n    revenue: number;\n    profit: number;\n    orders: number;\n    revenueLabel: string;\n    profitLabel: string;\n}\n\n// Custom legend template.\n// Avoid fixed widths so the legend layout can calculate item spacing naturally.\nconst legendTemplate: string =\n    '<div style=\"display:inline-flex;align-items:center;gap:12px;padding:10px 16px;min-height:68px;box-sizing:border-box;border:1px solid #e2e8f0;border-radius:10px;background:#ffffff;white-space:nowrap;cursor:pointer;\">' +\n        '<span style=\"display:flex;align-items:center;justify-content:center;min-width:28px;font-size:25px;font-weight:600;color:{{color}};\">{{icon}}</span>' +\n        '<div style=\"display:flex;flex-direction:column;gap:3px;\">' +\n            '<span style=\"font-size:16px;font-weight:600;color:#1e293b;\">{{title}}</span>' +\n            '<span style=\"font-size:12px;color:#64748b;\">{{description}}</span>' +\n        '</div>' +\n    '</div>';\n\n@Component({\n    selector: 'app-combination-chart',\n    standalone: true,\n    imports: [ChartModule],\n    providers: [\n        CategoryService, SplineSeriesService, SplineAreaSeriesService, ColumnSeriesService,\n        LegendService, TooltipService, CrosshairService, StripLineService, DataLabelService\n    ],\n    templateUrl: './combination-chart.component.html',\n    styleUrls: ['../styles/combination-chart.component.css'],\n    encapsulation: ViewEncapsulation.None\n})\nexport class CombinationChartComponent {\n    public businessData: BusinessData[] = [\n        { month: 'Jan', revenue: 65000, profit: 18000, orders: 240, revenueLabel: '$65K', profitLabel: '$18K' },\n        { month: 'Feb', revenue: 72000, profit: 22000, orders: 270, revenueLabel: '$72K', profitLabel: '$22K' },\n        { month: 'Mar', revenue: 81000, profit: 25000, orders: 340, revenueLabel: '$81K', profitLabel: '$25K' },\n        { month: 'Apr', revenue: 76000, profit: 21000, orders: 310, revenueLabel: '$76K', profitLabel: '$21K' },\n        { month: 'May', revenue: 94000, profit: 31000, orders: 390, revenueLabel: '$94K', profitLabel: '$31K' },\n        { month: 'Jun', revenue: 102000, profit: 34000, orders: 420, revenueLabel: '$102K', profitLabel: '$34K' }\n    ];\n\n    public legendSettings: LegendSettingsModel = {\n        visible: true,\n        position: 'Top',\n        alignment: 'Center',\n        layout: 'Horizontal',\n        width: '100%',\n        height: '95px',\n        itemPadding: 15,\n        enablePages: false,\n        template: legendTemplate\n    };\n\n    // X-axis with April promotional campaign strip line.\n    public primaryXAxis: AxisModel = {\n        valueType: 'Category',\n        majorGridLines: { width: 0 },\n        majorTickLines: { width: 0 },\n        lineStyle: { color: '#cbd5e1', width: 1 },\n        labelStyle: { color: '#64748b', size: '12px' },\n        stripLines: [\n            {\n                start: 3,\n                end: 4,\n                color: '#a855f7',\n                opacity: 0.14,\n                visible: true,\n                text: 'April Promotion',\n                horizontalAlignment: 'Middle',\n                verticalAlignment: 'Middle',\n                rotation: -90,\n                zIndex: 'Behind',\n                textStyle: { color: '#7e22ce', size: '11px', fontWeight: '600' }\n            }\n        ]\n    };\n\n    // Primary Y-axis with $80K revenue target.\n    public primaryYAxis: AxisModel = {\n        minimum: 0,\n        maximum: 120000,\n        interval: 20000,\n        title: 'Amount ($ in Thousands)',\n        labelFormat: '${value}',\n        majorGridLines: { width: 1, color: '#e2e8f0', dashArray: '3,3' },\n        majorTickLines: { width: 0 },\n        lineStyle: { width: 0 },\n        labelStyle: { color: '#64748b', size: '11px' },\n        stripLines: [\n            {\n                start: 80000,\n                end: 80500,\n                color: '#f59e0b',\n                opacity: 0.12,\n                visible: true,\n                text: 'Revenue Target: $80K',\n                horizontalAlignment: 'End',\n                verticalAlignment: 'Start',\n                rotation: 0,\n                zIndex: 'Over',\n                textStyle: { color: '#b45309', size: '11px', fontWeight: '600' },\n                border: { color: '#f59e0b', width: 1 }\n            }\n        ]\n    };\n\n    public tooltip: TooltipSettingsModel = { enable: true, shared: true };\n\n    public crosshair: CrosshairSettingsModel = {\n        enable: true,\n        lineType: 'Vertical',\n        line: { color: '#94a3b8', width: 1, dashArray: '4,4' }\n    };\n\n    public chartArea: ChartAreaModel = { border: { width: 0 } };\n\n    public zeroLine: { width: number } = { width: 0 };\n\n    // Revenue data labels: name maps revenueLabel to point.text.\n    public revenueMarker: MarkerSettingsModel = {\n        visible: true,\n        width: 7,\n        height: 7,\n        shape: 'Circle',\n        fill: '#ffffff',\n        border: { color: '#1683ed', width: 2 },\n        dataLabel: {\n            visible: true,\n            name: 'revenueLabel',\n            template:\n                '<div style=\"padding:4px 7px;border:1px solid #1683ed;border-radius:5px;background:#ffffff;color:#1683ed;font-size:11px;font-weight:600;white-space:nowrap;\">${point.text}</div>',\n            position: 'Top'\n        }\n    };\n\n    // Profit markers.\n    public profitMarker: MarkerSettingsModel = {\n        visible: true,\n        width: 6,\n        height: 6,\n        shape: 'Circle',\n        fill: '#ffffff',\n        border: { color: '#16a765', width: 2 }\n    };\n\n    public profitBorder: BorderModel = { color: '#16a765', width: 2 };\n\n    // Customize legend content for each series.\n    public legendRender(args: ILegendRenderEventArgs): void {\n        const legendDetails: Record<string, { icon: string; description: string }> = {\n            Revenue: { icon: '↗', description: '($ in Thousands)' },\n            Profit: { icon: '⌁', description: '($ in Thousands)' },\n            Orders: { icon: '▮', description: '(Count)' }\n        };\n\n        const details: { icon: string; description: string } = legendDetails[args.text];\n\n        if (!details) {\n            return;\n        }\n\n        args.template = legendTemplate\n            .replace('{{color}}', args.fill)\n            .replace('{{icon}}', details.icon)\n            .replace('{{title}}', args.text)\n            .replace('{{description}}', details.description);\n    }\n}\n"
    }
  ]
}