{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "chart-combination-chart",
  "framework": "vue",
  "type": "registry:component",
  "component": "Chart",
  "variant": "combination-chart",
  "dependencies": [
    "@syncfusion/ej2-vue-charts"
  ],
  "description": "Multi-series combination chart with spline area and column series with strip lines.",
  "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/vue/llms.txt",
    "skillPack": "syncfusion/vue-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/vue/chart-combination-chart.md"
  },
  "files": [
    {
      "target": "src/components/chart-combination-chart/CombinationChart.vue",
      "content": "<template>\n    <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=\"handleLegendRender\">\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</template>\n\n<script setup lang=\"ts\">\nimport { provide } from 'vue';\nimport {\n    ChartComponent as EjsChart,\n    SeriesCollectionDirective as ESeriesCollection,\n    SeriesDirective as ESeries,\n    AxesDirective as EAxes,\n    AxisDirective as EAxis,\n    Category,\n    SplineSeries,\n    SplineAreaSeries,\n    ColumnSeries,\n    Legend,\n    Tooltip,\n    Crosshair,\n    StripLine,\n    DataLabel,\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-vue-charts';\n\nprovide('chart', [Category, SplineSeries, SplineAreaSeries, ColumnSeries, Legend, Tooltip, Crosshair, StripLine, DataLabel]);\n\ninterface BusinessData {\n    month: string;\n    revenue: number;\n    profit: number;\n    orders: number;\n    revenueLabel: string;\n    profitLabel: string;\n}\n\nconst 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// 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\nconst 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// Customize legend content for each series.\nconst handleLegendRender = (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// X-axis with April promotional campaign strip line.\nconst 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.\nconst 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\nconst tooltip: TooltipSettingsModel = { enable: true, shared: true };\n\nconst crosshair: CrosshairSettingsModel = {\n    enable: true,\n    lineType: 'Vertical',\n    line: { color: '#94a3b8', width: 1, dashArray: '4,4' }\n};\n\nconst chartArea: ChartAreaModel = { border: { width: 0 } };\n\nconst zeroLine: { width: number } = { width: 0 };\n\n// Revenue data labels: name maps revenueLabel to point.text.\nconst 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.\nconst 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\nconst profitBorder: BorderModel = { color: '#16a765', width: 2 };\n</script>\n\n<style>\n.business-performance {\n    width: 100%;\n    padding: 16px;\n    box-sizing: border-box;\n    background: #ffffff;\n    border: 1px solid #e2e8f0;\n    border-radius: 12px;\n    font-family: Arial, sans-serif;\n}\n\n.business-chart-title {\n    text-align: center;\n    color: #1e293b;\n    font-size: 24px;\n    font-weight: 600;\n    margin: 8px 0 4px;\n}\n\n.business-chart-subtitle {\n    text-align: center;\n    color: #64748b;\n    font-size: 14px;\n    margin-bottom: 4px;\n}\n\n.business-performance .e-legend-item {\n    cursor: pointer;\n}\n\n.business-performance .e-legend-item:hover {\n    opacity: 0.88;\n}\n\n@media (max-width: 850px) {\n    .business-chart-title {\n        font-size: 20px;\n    }\n\n    .business-performance .e-legend {\n        height: auto !important;\n    }\n}\n\n@media (max-width: 600px) {\n    .business-performance {\n        padding: 8px;\n    }\n\n    .business-chart-title {\n        font-size: 18px;\n    }\n\n    .business-chart-subtitle {\n        font-size: 12px;\n    }\n}\n</style>\n"
    }
  ]
}