{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "chart-chart-galary",
  "framework": "react",
  "type": "registry:component",
  "component": "Chart",
  "variant": "chart-galary",
  "dependencies": [
    "@syncfusion/ej2-react-charts"
  ],
  "description": "Chart gallery combining line, spline, area, column, and stacked series in one sample.",
  "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/react/llms.txt",
    "skillPack": "syncfusion/react-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/react/ts/chart-chart-galary.md"
  },
  "files": [
    {
      "target": "src/components/chart-chart-galary/Chart.tsx",
      "content": "import {\n    ChartComponent,\n    AccumulationChartComponent,\n    AccumulationSeriesCollectionDirective,\n    AccumulationSeriesDirective,\n    SeriesCollectionDirective,\n    SeriesDirective,\n    TrendlinesDirective,\n    TrendlineDirective,\n    IndicatorsDirective,\n    IndicatorDirective,\n    AnnotationsDirective,\n    AnnotationDirective,\n    AxesDirective,\n    AxisDirective,\n    RowsDirective,\n    RowDirective,\n    Inject,\n    LineSeries,\n    SplineSeries,\n    StepLineSeries,\n    AreaSeries,\n    SplineAreaSeries,\n    RangeAreaSeries,\n    ColumnSeries,\n    BarSeries,\n    StackingColumnSeries,\n    ScatterSeries,\n    BubbleSeries,\n    CandleSeries,\n    WaterfallSeries,\n    HistogramSeries,\n    ParetoSeries,\n    BoxAndWhiskerSeries,\n    RadarSeries,\n    PieSeries,\n    AccumulationLegend,\n    AccumulationTooltip,\n    AccumulationDataLabel,\n    Category,\n    DateTime,\n    Double,\n    Legend,\n    Tooltip,\n    DataLabel,\n    Zoom,\n    Highlight,\n    Selection,\n    StripLine,\n    Trendlines,\n    ErrorBar,\n    ChartAnnotation,\n    DataEditing,\n    SeriesLabel,\n    LastValueLabel,\n    MultiLevelLabel,\n    Logarithmic,\n    RsiIndicator\n} from '@syncfusion/ej2-react-charts';\nimport type { CSSProperties, ReactElement } from 'react';\n\ntype Point = { x: string; y: number };\ntype RangePoint = { x: string; low: number; high: number };\ntype CandlePoint = { x: Date; open: number; high: number; low: number; close: number; volume: number };\ntype BubblePoint = { x: number; y: number; size: number };\ntype BoxPoint = { x: string; y: number[] };\ntype PiePoint = { x: string; y: number };\n\nconst monthlyData: Point[] = [\n    { x: 'Jan', y: 28 }, { x: 'Feb', y: 35 }, { x: 'Mar', y: 31 },\n    { x: 'Apr', y: 46 }, { x: 'May', y: 40 }, { x: 'Jun', y: 54 },\n    { x: 'Jul', y: 48 }, { x: 'Aug', y: 63 }, { x: 'Sep', y: 57 },\n    { x: 'Oct', y: 72 }, { x: 'Nov', y: 66 }, { x: 'Dec', y: 82 }\n];\n\nconst secondLineData: Point[] = [\n    { x: 'Jan', y: 18 }, { x: 'Feb', y: 24 }, { x: 'Mar', y: 22 },\n    { x: 'Apr', y: 30 }, { x: 'May', y: 27 }, { x: 'Jun', y: 38 },\n    { x: 'Jul', y: 34 }, { x: 'Aug', y: 43 }, { x: 'Sep', y: 39 },\n    { x: 'Oct', y: 49 }, { x: 'Nov', y: 45 }, { x: 'Dec', y: 56 }\n];\n\nconst rangeData: RangePoint[] = [\n    { x: 'Jan', low: 12, high: 30 }, { x: 'Feb', low: 18, high: 38 },\n    { x: 'Mar', low: 16, high: 35 }, { x: 'Apr', low: 25, high: 48 },\n    { x: 'May', low: 22, high: 44 }, { x: 'Jun', low: 34, high: 58 },\n    { x: 'Jul', low: 30, high: 54 }, { x: 'Aug', low: 42, high: 68 },\n    { x: 'Sep', low: 38, high: 63 }, { x: 'Oct', low: 48, high: 76 },\n    { x: 'Nov', low: 44, high: 70 }, { x: 'Dec', low: 55, high: 86 }\n];\n\nconst categoryData: Point[] = [\n    { x: 'Q1', y: 34 }, { x: 'Q2', y: 48 }, { x: 'Q3', y: 42 },\n    { x: 'Q4', y: 63 }, { x: 'Q5', y: 57 }, { x: 'Q6', y: 76 }\n];\n\nconst stackedA: Point[] = [\n    { x: 'Jan', y: 18 }, { x: 'Feb', y: 22 }, { x: 'Mar', y: 19 },\n    { x: 'Apr', y: 26 }, { x: 'May', y: 24 }, { x: 'Jun', y: 30 }\n];\nconst stackedB: Point[] = [\n    { x: 'Jan', y: 12 }, { x: 'Feb', y: 15 }, { x: 'Mar', y: 14 },\n    { x: 'Apr', y: 18 }, { x: 'May', y: 17 }, { x: 'Jun', y: 21 }\n];\n\nconst scatterData: { x: number; y: number }[] = [\n    { x: 1, y: 18 }, { x: 2, y: 24 }, { x: 3, y: 21 }, { x: 4, y: 34 },\n    { x: 5, y: 29 }, { x: 6, y: 43 }, { x: 7, y: 38 }, { x: 8, y: 51 },\n    { x: 9, y: 46 }, { x: 10, y: 60 }, { x: 11, y: 55 }, { x: 12, y: 68 }\n];\n\nconst bubbleData: BubblePoint[] = [\n    { x: 1.2, y: 18, size: 2 }, { x: 2.1, y: 32, size: 3 },\n    { x: 3.0, y: 25, size: 2.5 }, { x: 4.0, y: 43, size: 4 },\n    { x: 5.0, y: 36, size: 3 }, { x: 6.1, y: 57, size: 5 },\n    { x: 7.0, y: 48, size: 4 }, { x: 8.0, y: 65, size: 3 }\n];\n\nconst candleData: CandlePoint[] = [\n    { x: new Date(2025, 0, 1), open: 102, high: 110, low: 98, close: 107, volume: 1200 },\n    { x: new Date(2025, 0, 2), open: 107, high: 113, low: 103, close: 105, volume: 1450 },\n    { x: new Date(2025, 0, 3), open: 105, high: 116, low: 104, close: 113, volume: 1600 },\n    { x: new Date(2025, 0, 4), open: 113, high: 119, low: 109, close: 111, volume: 1380 },\n    { x: new Date(2025, 0, 5), open: 111, high: 121, low: 110, close: 118, volume: 1720 },\n    { x: new Date(2025, 0, 6), open: 118, high: 125, low: 115, close: 122, volume: 1900 },\n    { x: new Date(2025, 0, 7), open: 122, high: 128, low: 117, close: 120, volume: 1810 }\n];\n\nconst histogramData: { y: number }[] = [\n    { y: 12 }, { y: 18 }, { y: 21 }, { y: 23 }, { y: 25 }, { y: 27 },\n    { y: 29 }, { y: 31 }, { y: 32 }, { y: 34 }, { y: 35 }, { y: 36 },\n    { y: 38 }, { y: 39 }, { y: 41 }, { y: 43 }, { y: 46 }, { y: 48 },\n    { y: 52 }, { y: 55 }, { y: 59 }, { y: 63 }, { y: 67 }, { y: 72 }\n];\n\nconst boxData: BoxPoint[] = [\n    { x: 'North', y: [12, 18, 21, 25, 31, 35, 42] },\n    { x: 'South', y: [15, 19, 24, 29, 33, 38, 44] },\n    { x: 'East', y: [9, 14, 20, 23, 28, 34, 39] },\n    { x: 'West', y: [18, 22, 27, 31, 36, 41, 47] }\n];\n\nconst pieData: PiePoint[] = [\n    { x: 'Desktop', y: 38 }, { x: 'Mobile', y: 32 },\n    { x: 'Tablet', y: 18 }, { x: 'Other', y: 12 }\n];\n\nconst chartCardStyle: CSSProperties = {\n    minWidth: 0,\n    padding: '12px',\n    border: '1px solid #dbe4ee',\n    borderRadius: '12px',\n    background: 'linear-gradient(180deg, #ffffff 0%, #fbfdff 100%)',\n    boxShadow: '0 2px 8px rgba(15, 23, 42, 0.045)'\n};\n\nconst chartTitleStyle: CSSProperties = {\n    margin: '0 0 8px',\n    fontSize: '14px',\n    fontWeight: 650,\n    letterSpacing: '0.1px',\n    color: '#1e293b'\n};\n\nconst chartServices = [\n    LineSeries, SplineSeries, StepLineSeries, AreaSeries, SplineAreaSeries,\n    RangeAreaSeries, ColumnSeries, BarSeries, StackingColumnSeries,\n    ScatterSeries, BubbleSeries, CandleSeries, WaterfallSeries,\n    HistogramSeries, ParetoSeries, BoxAndWhiskerSeries, RadarSeries,\n    Category, DateTime, Double, Logarithmic, Legend, Tooltip,\n    DataLabel, Zoom, Highlight, Selection, StripLine, Trendlines, ErrorBar,\n    ChartAnnotation, DataEditing, SeriesLabel, LastValueLabel, MultiLevelLabel,\n    RsiIndicator\n];\n\nconst commonTooltip = { enable: true, showNearestTooltip: true, enableHighlight: true };\nconst commonLegend = { visible: true, enableHighlight: true, position: 'Bottom' as const };\nconst commonXAxis = {\n    valueType: 'Category' as const,\n    majorGridLines: { width: 0 },\n    majorTickLines: { width: 0 }\n};\nconst commonYAxis = {\n    majorGridLines: { width: 1 },\n    majorTickLines: { width: 0 },\n    lineStyle: { width: 0 }\n};\n\nconst ChartGallery = (): ReactElement => {\n    return (\n        <div className='chart-gallery-page'>\n            <style>{`\n                /*\n                 * Application layout and scrolling.\n                 * These rules are colocated with the gallery so no separate\n                 * App.css change is required for this sample.\n                 */\n                html,\n                body,\n                #root {\n                    width: 100%;\n                    min-height: 100%;\n                    margin: 0;\n                }\n\n                .app-shell {\n                    display: flex;\n                    height: 100vh;\n                    min-height: 0;\n                }\n\n                .app-main {\n                    display: flex;\n                    flex: 1 1 auto;\n                    flex-direction: column;\n                    min-width: 0;\n                    min-height: 0;\n                    overflow: hidden;\n                }\n\n                .app-content {\n                    flex: 1 1 auto;\n                    min-width: 0;\n                    min-height: 0;\n                    height: auto !important;\n                    max-height: none !important;\n                    padding: 16px 24px 24px;\n                    overflow-x: hidden !important;\n                    overflow-y: auto !important;\n                    overscroll-behavior-y: contain;\n                    -webkit-overflow-scrolling: touch;\n                }\n\n                .app-content-wrapper {\n                    min-height: 100%;\n                    height: auto !important;\n                    max-height: none !important;\n                    overflow: visible !important;\n                }\n\n                .chart-gallery-page {\n                    box-sizing: border-box;\n                    display: block;\n                    width: 100%;\n                    min-height: 100%;\n                    height: auto !important;\n                    max-height: none !important;\n                    padding: 12px 16px 32px;\n                    overflow: visible !important;\n                }\n\n                .chart-gallery-grid {\n                    display: grid;\n                    grid-template-columns: repeat(3, minmax(0, 1fr));\n                    grid-auto-rows: minmax(320px, auto);\n                    align-items: stretch;\n                    gap: 16px;\n                    width: 100%;\n                    height: auto;\n                    overflow: visible;\n                }\n\n                .chart-gallery-card {\n                    box-sizing: border-box;\n                    min-width: 0;\n                    min-height: 320px;\n                    height: auto;\n                    overflow: visible;\n                }\n\n                .chart-gallery-card .e-chart,\n                .chart-gallery-card .e-accumulationchart {\n                    display: block;\n                    width: 100%;\n                    max-width: 100%;\n                }\n\n                @media (max-width: 1000px) {\n                    .chart-gallery-grid {\n                        grid-template-columns: repeat(2, minmax(0, 1fr));\n                    }\n                }\n\n                @media (max-width: 768px) {\n                    .app-content {\n                        padding: 12px !important;\n                    }\n                }\n\n                @media (max-width: 620px) {\n                    .chart-gallery-page {\n                        padding: 8px 10px 24px;\n                    }\n\n                    .chart-gallery-grid {\n                        grid-template-columns: minmax(0, 1fr);\n                        grid-auto-rows: minmax(300px, auto);\n                        gap: 12px;\n                    }\n\n                    .chart-gallery-card {\n                        min-height: 300px;\n                    }\n                }\n            `}</style>\n\n            <div className='chart-gallery-grid'>\n                {/* 1. Line: markers, custom legend template, trendline, last-value and series labels */}\n                <div id='line-with-markers-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Line with Markers, Trendline &amp; Last Value</h3>\n                    <ChartComponent id='line-with-markers-chart' height='230px' primaryXAxis={commonXAxis}\n                        primaryYAxis={commonYAxis} tooltip={commonTooltip}\n                        legendSettings={{ ...commonLegend, template: '<div style=\"display:flex;align-items:center;gap:6px;padding:3px 8px;border-radius:4px;background:#f1f5f9;\"><span style=\"font-weight:600;\">${series.name}</span></div>' }}\n                    >\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={monthlyData} xName='x' yName='y' name='Revenue'\n                                type='Line' width={2} fill='#2563eb'\n                                marker={{ visible: true, width: 8, height: 8, shape: 'Circle', isFilled: true, border: { width: 2, color: '#ffffff' } }}\n                                lastValueLabel={{ enable: true, background: '#0f766e', font: { color: '#ffffff', fontWeight: '600' }, lineColor: '#0f766e', lineWidth: 1 }}\n                                labelSettings={{ visible: true, text: 'Revenue', background: '#ecfeff', font: { color: '#0f766e', fontWeight: '600' } }}>\n                                <TrendlinesDirective>\n                                    <TrendlineDirective type='Linear' width={2} fill='#f97316' />\n                                </TrendlinesDirective>\n                            </SeriesDirective>\n                            <SeriesDirective dataSource={secondLineData} xName='x' yName='y' name='Orders'\n                                type='Line' width={2} fill='#f97316' marker={{ visible: true, width: 7, height: 7, shape: 'Diamond', isFilled: true }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 2. Spline with shared tooltip */}\n                <div id='spline-shared-tooltip-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Spline with Shared Tooltip</h3>\n                    <ChartComponent id='spline-shared-tooltip-chart' height='230px'\n                        primaryXAxis={{ ...commonXAxis }}\n                        primaryYAxis={{ ...commonYAxis }}\n                        tooltip={{ ...commonTooltip, shared: true }}\n                        legendSettings={commonLegend}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={monthlyData} xName='x' yName='y' name='Actual'\n                                type='Spline' width={2.5} fill='#2563eb' marker={{ visible: true, width: 6, height: 6 }} />\n                            <SeriesDirective dataSource={secondLineData} xName='x' yName='y' name='Target'\n                                type='Spline' width={2} fill='#f97316' dashArray='5,3' marker={{ visible: true, width: 5, height: 5 }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 3. Step Line */}\n                <div id='step-line-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Step Line with Multi-level Axis Labels</h3>\n                    <ChartComponent id='step-line-chart' height='230px'\n                        primaryXAxis={{\n                            ...commonXAxis,\n                            multiLevelLabels: [{\n                                categories: [\n                                    { start: -0.5, end: 5.5, text: 'First half' },\n                                    { start: 5.5, end: 11.5, text: 'Second half' }\n                                ]\n                            }]\n                        }}\n                        primaryYAxis={{ ...commonYAxis }}\n                        tooltip={commonTooltip}\n                        legendSettings={commonLegend}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={monthlyData} xName='x' yName='y' name='Step revenue'\n                                type='StepLine' fill='#7c3aed' width={2.5} dashArray='0'\n                                marker={{\n                                    visible: true, width: 8, height: 8, shape: 'Circle', isFilled: true,\n                                    border: { width: 2, color: '#ffffff' }\n                                }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 4. Area */}\n                <div id='area-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Area with Gradient Fill</h3>\n                    <ChartComponent id='area-chart' height='230px'\n                        primaryXAxis={{ ...commonXAxis }}\n                        primaryYAxis={{ ...commonYAxis }}\n                        tooltip={commonTooltip}\n                        legendSettings={commonLegend}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={monthlyData} xName='x' yName='y' name='Revenue'\n                                type='Area' opacity={0.85} border={{ width: 2 }}\n                                linearGradient={{\n                                    x1: 0, y1: 0, x2: 0, y2: 1,\n                                    gradientColorStop: [\n                                        { color: '#0d9488', offset: 0, opacity: 0.85 },\n                                        { color: '#99f6e4', offset: 100, opacity: 0.18 }\n                                    ]\n                                }}\n                                marker={{ visible: true, width: 6, height: 6 }}\n                                animation={{ enable: true, duration: 900, delay: 0 }} />\n                            <SeriesDirective dataSource={secondLineData} xName='x' yName='y' name='Orders'\n                                type='Area' fill='#f97316' opacity={0.35} marker={{ visible: true, width: 5, height: 5 }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 5. Spline Area */}\n                {/* 5. Spline Area */}\n                <div id='spline-area-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Spline Area with Spline Comparison</h3>\n                    <ChartComponent\n                        id='spline-area-chart'\n                        height='230px'\n                        primaryXAxis={{\n                            ...commonXAxis\n                        }}\n                        primaryYAxis={{\n                            ...commonYAxis,\n                            minimum: 0,\n                            maximum: 100,\n                            interval: 25\n                        }}\n                        tooltip={{ ...commonTooltip, shared: true }}\n                        legendSettings={commonLegend}\n                    >\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective\n                                dataSource={monthlyData}\n                                xName='x'\n                                yName='y'\n                                name='Revenue'\n                                type='SplineArea'\n                                fill='#2563eb'\n                                opacity={0.25}\n                                border={{ color: '#1d4ed8', width: 2.5 }}\n                                marker={{\n                                    visible: true,\n                                    width: 7,\n                                    height: 7,\n                                    fill: '#ffffff',\n                                    border: { color: '#1d4ed8', width: 2 }\n                                }}\n                                animation={{ enable: true, duration: 1000, delay: 0 }}\n                            />\n                            <SeriesDirective\n                                dataSource={secondLineData}\n                                xName='x'\n                                yName='y'\n                                name='Orders'\n                                type='Spline'\n                                fill='#f97316'\n                                width={2.5}\n                                dashArray='5,3'\n                                marker={{\n                                    visible: true,\n                                    width: 7,\n                                    height: 7,\n                                    shape: 'Diamond',\n                                    fill: '#475569',\n                                    border: { color: '#ffffff', width: 1.5 }\n                                }}\n                                animation={{ enable: true, duration: 1000, delay: 200 }}\n                            />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 6. Range Area */}\n                <div id='range-area-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Range Area</h3>\n                    <ChartComponent id='range-area-chart' height='230px'\n                        primaryXAxis={{ ...commonXAxis }}\n                        primaryYAxis={{ ...commonYAxis }}\n                        tooltip={{ ...commonTooltip, format: '${point.x}: ${point.low} - ${point.high}' }} legendSettings={commonLegend}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={rangeData} xName='x' high='high' low='low'\n                                name='Forecast range' type='RangeArea' fill='#8b5cf6' opacity={0.28}\n                                border={{ width: 2 }} marker={{ visible: true, width: 5, height: 5 }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 7. Column: annotation, error bars, drag editing, point selection and highlight */}\n                <div id='column-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Column with Error Bar, Drag &amp; Annotation</h3>\n                    <ChartComponent id='column-chart' height='230px'\n                        primaryXAxis={{ ...commonXAxis }}\n                        primaryYAxis={{ ...commonYAxis }}\n                        tooltip={commonTooltip}\n                        selectionMode='Point' highlightMode='Series' isMultiSelect={true}\n                        legendSettings={commonLegend}>\n                        <Inject services={chartServices} />\n                        <AnnotationsDirective>\n                            <AnnotationDirective content='<div style=\"padding:5px 8px;background:#0f766e;color:#fff;border-radius:4px;font-size:11px;\">Quarterly target achieved</div>'\n                                region='Series' coordinateUnits='Point' x='Q4' y={63} />\n                        </AnnotationsDirective>\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={categoryData} xName='x' yName='y' name='Sales'\n                                type='Column' fill='#2563eb' columnSpacing={0.2} columnWidth={0.65}\n                                cornerRadius={{ topLeft: 5, topRight: 5 }}\n                                errorBar={{ visible: true }}\n                                dragSettings={{ enable: true, minY: 0, maxY: 100, fill: '#f97316' }}\n                                marker={{ dataLabel: { visible: true, position: 'Top', format: '{value}', font: { fontWeight: '600' } } }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 8. Bar: numeric value axis, category axis, target stripline and labels */}\n                <div id='bar-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Bar with Target Stripline &amp; Data Labels</h3>\n                    <ChartComponent id='bar-chart' height='250px'\n                        primaryXAxis={{\n                            valueType: 'Category', title: 'Quarter',\n                            majorGridLines: { width: 0 }, majorTickLines: { width: 0 },\n                            labelIntersectAction: 'Wrap'\n                        }}\n                        primaryYAxis={{\n                            valueType: 'Double', minimum: 0, maximum: 90, interval: 15,\n                            title: 'Sales', majorGridLines: { width: 1 }, majorTickLines: { width: 0 },\n                            stripLines: [{\n                                start: 50, end: 70, color: '#fbbf24', opacity: 0.18,\n                                text: 'Target range', visible: true, zIndex: 'Behind',\n                                textStyle: { color: '#92400e', size: '11px' }\n                            }]\n                        }}\n                        tooltip={{ enable: true, format: '${point.x}: ${point.y} sales' }}\n                        legendSettings={{ visible: true, position: 'Bottom' }}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={categoryData} xName='x' yName='y' name='Sales'\n                                type='Bar' fill='#2563eb' columnSpacing={0.3} columnWidth={0.65}\n                                cornerRadius={{ topLeft: 4, topRight: 4 }}\n                                marker={{\n                                    dataLabel: {\n                                        visible: true, position: 'Middle', format: '{value}',\n                                        font: { color: '#ffffff', size: '10px', fontWeight: '600' }\n                                    }\n                                }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n                {/* 9. Stacking Column with Enhanced Labels */}\n                <div id='stacking-column-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Monthly Sales by Channel</h3>\n\n                    <ChartComponent\n                        id='stacking-column-chart'\n                        height='250px'\n                        background='transparent'\n                        chartArea={{ border: { width: 0 } }}\n                        primaryXAxis={{\n                            ...commonXAxis,\n                            title: 'Month',\n                            labelStyle: { color: '#475569', size: '12px' },\n                            titleStyle: { color: '#334155', size: '12px', fontWeight: '600' },\n                            majorGridLines: { width: 0 },\n                            lineStyle: { width: 1, color: '#cbd5e1' }\n                        }}\n                        primaryYAxis={{\n                            ...commonYAxis,\n                            title: 'Sales',\n                            minimum: 0,\n                            maximum: 60,\n                            interval: 10,\n                            labelStyle: { color: '#64748b', size: '11px' },\n                            titleStyle: { color: '#334155', size: '12px', fontWeight: '600' },\n                            majorGridLines: { width: 1, color: '#e2e8f0', dashArray: '3,3' },\n                            lineStyle: { width: 0 }\n                        }}\n                        tooltip={{\n                            enable: true,\n                            shared: true,\n                            showNearestTooltip: true,\n                            enableHighlight: true\n                        }}\n                        stackLabels={{\n                            visible: true,\n                            format: '{value}',\n                            fill: '#334155',\n                            font: {\n                                color: '#ffffff',\n                                size: '11px',\n                                fontWeight: '600'\n                            }\n                        }}\n                        legendSettings={{\n                            visible: true,\n                            position: 'Bottom',\n                            alignment: 'Center',\n                            enableHighlight: true,\n                            textStyle: {\n                                color: '#475569',\n                                size: '12px'\n                            }\n                        }}\n                    >\n                        <Inject services={chartServices} />\n\n                        <SeriesCollectionDirective>\n                            <SeriesDirective\n                                dataSource={stackedA}\n                                xName='x'\n                                yName='y'\n                                name='Online'\n                                type='StackingColumn'\n                                fill='#0D9488'\n                                columnWidth={0.65}\n                                columnSpacing={0.15}\n                                cornerRadius={{ topLeft: 0, topRight: 0 }}\n                                marker={{\n                                    dataLabel: {\n                                        visible: true,\n                                        position: 'Middle',\n                                        format: '{value}',\n                                        font: {\n                                            color: '#ffffff',\n                                            size: '11px',\n                                            fontWeight: '600'\n                                        }\n                                    }\n                                }}\n                            />\n\n                            <SeriesDirective\n                                dataSource={stackedB}\n                                xName='x'\n                                yName='y'\n                                name='Retail'\n                                type='StackingColumn'\n                                fill='#F59E0B'\n                                columnWidth={0.65}\n                                columnSpacing={0.15}\n                                marker={{\n                                    dataLabel: {\n                                        visible: true,\n                                        position: 'Middle',\n                                        format: '{value}',\n                                        font: {\n                                            color: '#ffffff',\n                                            size: '11px',\n                                            fontWeight: '600'\n                                        }\n                                    }\n                                }}\n                            />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n                {/* 10. Scatter */}\n                <div id='scatter-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Scatter with Selection &amp; Log Axis</h3>\n                    <ChartComponent id='scatter-chart' height='230px'\n                        primaryXAxis={{ valueType: 'Double', majorGridLines: { width: 0 } }}\n                        primaryYAxis={{ ...commonYAxis, valueType: 'Logarithmic', logBase: 10, minimum: 10 }}\n                        tooltip={{ ...commonTooltip, shared: true }}\n                        selectionMode='DragXY' highlightMode='Point' isMultiSelect={true}\n                        legendSettings={commonLegend}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={scatterData} xName='x' yName='y' name='Observations'\n                                type='Scatter' fill='#7c3aed' dragSettings={{ enable: true, minY: 0, maxY: 100 }}\n                                marker={{\n                                    visible: true, width: 10, height: 10, shape: 'Circle',\n                                    border: { width: 1.5, color: '#ffffff' }\n                                }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 11. Bubble: controlled bubble sizes, clean axes and informative tooltip */}\n                <div id='bubble-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Bubble with Size Encoding &amp; Tooltip</h3>\n                    <ChartComponent id='bubble-chart' height='250px'\n                        primaryXAxis={{\n                            valueType: 'Double', minimum: 0, maximum: 9, interval: 2,\n                            title: 'Marketing reach', majorGridLines: { width: 0 },\n                            majorTickLines: { width: 0 }\n                        }}\n                        primaryYAxis={{\n                            ...commonYAxis, minimum: 0, maximum: 80, interval: 20,\n                            title: 'Engagement score'\n                        }}\n                        tooltip={{ enable: true, format: 'Reach: ${point.x}<br/>Engagement: ${point.y}<br/>Relative size: ${point.size}' }}\n                        legendSettings={{ visible: true, position: 'Bottom' }}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={bubbleData} xName='x' yName='y' size='size'\n                                name='Market segments' type='Bubble' minRadius={4} maxRadius={11}\n                                fill='#0d9488'\n                                marker={{\n                                    visible: true, opacity: 0.48,\n                                    border: { width: 1.5, color: '#ffffff' }\n                                }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 12. Candle: DateTime axis, RSI indicator pane, zooming, panning and trackball */}\n                <div id='candle-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Candle with RSI Indicator, Zoom &amp; Pan</h3>\n                    <ChartComponent id='candle-chart' height='330px'\n                        primaryXAxis={{ valueType: 'DateTime', labelFormat: 'dd MMM', majorGridLines: { width: 0 } }}\n                        primaryYAxis={{\n                            ...commonYAxis, title: 'Price', minimum: 90, maximum: 135, interval: 10,\n                            crosshairTooltip: { enable: true }\n                        }}\n                        tooltip={{ enable: true, shared: true }} crosshair={{ enable: true, lineType: 'Both' }}\n                        zoomSettings={{\n                            enableSelectionZooming: true, enableMouseWheelZooming: true,\n                            enablePinchZooming: true, enablePan: true, mode: 'X', showToolbar: true\n                        }}\n                        legendSettings={{ visible: true, position: 'Bottom' }}>\n                        <Inject services={chartServices} />\n                        <AxesDirective>\n                            <AxisDirective name='rsiAxis' rowIndex={1} opposedPosition={true}\n                                minimum={0} maximum={100} interval={20} title='RSI'\n                                majorGridLines={{ width: 0.5 }} />\n                        </AxesDirective>\n                        <RowsDirective>\n                            <RowDirective height='70%' />\n                            <RowDirective height='30%' />\n                        </RowsDirective>\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={candleData} xName='x' open='open' high='high'\n                                low='low' close='close' volume='volume' name='Stock price'\n                                type='Candle' bullFillColor='#16a34a' bearFillColor='#dc2626'\n                                enableSolidCandles={true} />\n                        </SeriesCollectionDirective>\n                        <IndicatorsDirective>\n                            <IndicatorDirective type='Rsi' field='Close' seriesName='Stock price'\n                                yAxisName='rsiAxis' period={3} overBought={70} overSold={30}\n                                upperLine={{ color: '#ef4444', width: 1, dashArray: '4,2' }}\n                                lowerLine={{ color: '#16a34a', width: 1, dashArray: '4,2' }} />\n                        </IndicatorsDirective>\n                    </ChartComponent>\n                </div>\n                {/* 13. Waterfall */}\n                <div id='waterfall-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Waterfall with Totals &amp; Connectors</h3>\n                    <ChartComponent id='waterfall-chart' height='230px'\n                        primaryXAxis={{ ...commonXAxis }}\n                        primaryYAxis={{ ...commonYAxis }}\n                        tooltip={commonTooltip}\n                        legendSettings={{ visible: false }}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={categoryData} xName='x' yName='y'\n                                name='Net change' type='Waterfall' intermediateSumIndexes={[2, 4]}\n                                sumIndexes={[5]} connector={{ color: '#9ca3af', width: 1.5, dashArray: '3,2' }}\n                                fill='#14b8a6' negativeFillColor='#ef4444' summaryFillColor='#64748b'\n                                marker={{ dataLabel: { visible: true, position: 'Outer', format: '{value}' } }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 14. Histogram */}\n                <div id='histogram-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Histogram with Normal Curve</h3>\n                    <ChartComponent id='histogram-chart' height='230px'\n                        primaryXAxis={{ valueType: 'Double', majorGridLines: { width: 0 }, title: 'Value range' }}\n                        primaryYAxis={{ ...commonYAxis, title: 'Frequency' }}\n                        tooltip={commonTooltip} legendSettings={{ visible: false }}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={histogramData} yName='y' name='Distribution'\n                                type='Histogram' fill='#0d9488' binInterval={10} showNormalDistribution={true}\n                                columnWidth={0.95} columnSpacing={0.02}\n                                marker={{ dataLabel: { visible: true, position: 'Top', format: '{value}' } }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 15. Pareto */}\n                <div id='pareto-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Pareto with Cumulative Percentage</h3>\n                    <ChartComponent id='pareto-chart' height='230px'\n                        primaryXAxis={{ ...commonXAxis, labelIntersectAction: 'Rotate45' }}\n                        primaryYAxis={{ ...commonYAxis, title: 'Frequency' }}\n                        tooltip={{ enable: true, shared: true, showNearestTooltip: true }} legendSettings={{ visible: true, position: 'Bottom' }}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={categoryData} xName='x' yName='y'\n                                name='Defects' type='Pareto' fill='#0d9488' marker={{ dataLabel: { visible: true, position: 'Top', format: '{value}' } }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 16. Box and Whisker */}\n                <div id='box-whisker-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Box &amp; Whisker with Mean &amp; Outliers</h3>\n                    <ChartComponent id='box-whisker-chart' height='230px'\n                        primaryXAxis={commonXAxis} primaryYAxis={{ ...commonYAxis, title: 'Measurement' }}\n                        tooltip={commonTooltip} legendSettings={commonLegend}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={boxData} xName='x' yName='y'\n                                name='Regional distribution' type='BoxAndWhisker' fill='#0d9488'\n                                showMean={true} showOutliers={true} boxPlotMode='Inclusive' />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 17. Radar */}\n                <div id='radar-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Radar with Performance vs Target</h3>\n                    <ChartComponent id='radar-chart' height='230px'\n                        primaryXAxis={commonXAxis}\n                        primaryYAxis={{ ...commonYAxis, minimum: 0, maximum: 100, interval: 20 }}\n                        tooltip={commonTooltip} legendSettings={commonLegend}>\n                        <Inject services={chartServices} />\n                        <SeriesCollectionDirective>\n                            <SeriesDirective dataSource={monthlyData.slice(0, 6)} xName='x' yName='y'\n                                name='Performance' type='Radar' fill='#0d9488' drawType='Area' opacity={0.35}\n                                border={{ width: 2 }} marker={{ visible: true, width: 8, height: 8 }} />\n                            <SeriesDirective dataSource={secondLineData.slice(0, 6)} xName='x' yName='y'\n                                name='Target' type='Radar' fill='#f97316' drawType='Line' dashArray='4,3'\n                                marker={{ visible: true, width: 7, height: 7 }} />\n                        </SeriesCollectionDirective>\n                    </ChartComponent>\n                </div>\n\n                {/* 18. Pie */}\n                <div id='pie-sample' className='chart-gallery-card' style={chartCardStyle}>\n                    <h3 style={chartTitleStyle}>Pie with Exploded Slice &amp; Smart Labels</h3>\n                    <AccumulationChartComponent id='pie-chart' height='230px'\n                        tooltip={{ enable: true, format: '${point.x}: ${point.y} (${point.percentage}%)' }}\n                        legendSettings={{ visible: true, position: 'Right', toggleVisibility: true }}\n                        enableSmartLabels={true} enableAnimation={true}>\n                        <Inject services={[PieSeries, AccumulationLegend, AccumulationTooltip, AccumulationDataLabel]} />\n                        <AccumulationSeriesCollectionDirective>\n                            <AccumulationSeriesDirective dataSource={pieData} xName='x' yName='y'\n                                name='Device share' type='Pie' radius='85%'\n                                startAngle={0} endAngle={360}\n                                explode={true} explodeIndex={1} explodeOffset='8%'\n                                dataLabel={{\n                                    visible: true, position: 'Outside', name: 'x', showZero: false,\n                                    connectorStyle: { length: '10px', type: 'Curve', width: 1 }\n                                }} />\n                        </AccumulationSeriesCollectionDirective>\n                    </AccumulationChartComponent>\n                </div>\n            </div>\n        </div>\n    );\n};\n\nexport default ChartGallery;\n"
    }
  ]
}