# chart-chart-galary

> Showcase of diverse chart types including line, spline, area, column, bar, and pie.

**Framework:** vue  **Component:** Chart  **Variant:** chart-galary

## 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-chart-galary.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-chart-galary/ChartGalary.vue

```vue
<template>
    <div class="chart-gallery-page">
        <div class="chart-gallery-grid">
            <!-- 1. Line: markers, custom legend template, trendline, last-value and series labels -->
            <div id="line-with-markers-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Line with Markers, Trendline &amp; Last Value</h3>
                <ejs-chart id="line-with-markers-chart" height="230px" :primaryXAxis="commonXAxis"
                    :primaryYAxis="commonYAxis" :tooltip="commonTooltip" :legendSettings="lineLegend">
                    <e-series-collection>
                        <e-series :dataSource="monthlyData" xName="x" yName="y" name="Revenue" type="Line" :width="2"
                            fill="#2563eb" :marker="lineRevenueMarker" :lastValueLabel="lineLastValueLabel"
                            :labelSettings="lineLabelSettings">
                            <e-trendlines>
                                <e-trendline type="Linear" :width="2" fill="#f97316"></e-trendline>
                            </e-trendlines>
                        </e-series>
                        <e-series :dataSource="secondLineData" xName="x" yName="y" name="Orders" type="Line" :width="2"
                            fill="#f97316" :marker="lineOrdersMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 2. Spline with shared tooltip -->
            <div id="spline-shared-tooltip-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Spline with Shared Tooltip</h3>
                <ejs-chart id="spline-shared-tooltip-chart" height="230px" :primaryXAxis="commonXAxis"
                    :primaryYAxis="commonYAxis" :tooltip="sharedTooltip" :legendSettings="commonLegend">
                    <e-series-collection>
                        <e-series :dataSource="monthlyData" xName="x" yName="y" name="Actual" type="Spline" :width="2.5"
                            fill="#2563eb" :marker="splineActualMarker"></e-series>
                        <e-series :dataSource="secondLineData" xName="x" yName="y" name="Target" type="Spline" :width="2"
                            fill="#f97316" dashArray="5,3" :marker="splineTargetMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 3. Step Line -->
            <div id="step-line-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Step Line with Multi-level Axis Labels</h3>
                <ejs-chart id="step-line-chart" height="230px" :primaryXAxis="stepXAxis" :primaryYAxis="commonYAxis"
                    :tooltip="commonTooltip" :legendSettings="commonLegend">
                    <e-series-collection>
                        <e-series :dataSource="monthlyData" xName="x" yName="y" name="Step revenue" type="StepLine"
                            fill="#7c3aed" :width="2.5" dashArray="0" :marker="stepMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 4. Area -->
            <div id="area-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Area with Gradient Fill</h3>
                <ejs-chart id="area-chart" height="230px" :primaryXAxis="commonXAxis" :primaryYAxis="commonYAxis"
                    :tooltip="commonTooltip" :legendSettings="commonLegend">
                    <e-series-collection>
                        <e-series :dataSource="monthlyData" xName="x" yName="y" name="Revenue" type="Area"
                            :opacity="0.85" :border="border2" :linearGradient="areaGradient"
                            :marker="areaRevenueMarker" :animation="areaAnimation"></e-series>
                        <e-series :dataSource="secondLineData" xName="x" yName="y" name="Orders" type="Area"
                            fill="#f97316" :opacity="0.35" :marker="areaOrdersMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 5. Spline Area -->
            <div id="spline-area-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Spline Area with Spline Comparison</h3>
                <ejs-chart id="spline-area-chart" height="230px" :primaryXAxis="commonXAxis"
                    :primaryYAxis="splineAreaYAxis" :tooltip="sharedTooltip" :legendSettings="commonLegend">
                    <e-series-collection>
                        <e-series :dataSource="monthlyData" xName="x" yName="y" name="Revenue" type="SplineArea"
                            fill="#2563eb" :opacity="0.25" :border="splineAreaBorder" :marker="splineAreaMarker"
                            :animation="splineAreaAnimation"></e-series>
                        <e-series :dataSource="secondLineData" xName="x" yName="y" name="Orders" type="Spline"
                            fill="#f97316" :width="2.5" dashArray="5,3" :marker="splineCompareMarker"
                            :animation="splineCompareAnimation"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 6. Range Area -->
            <div id="range-area-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Range Area</h3>
                <ejs-chart id="range-area-chart" height="230px" :primaryXAxis="commonXAxis" :primaryYAxis="commonYAxis"
                    :tooltip="rangeTooltip" :legendSettings="commonLegend">
                    <e-series-collection>
                        <e-series :dataSource="rangeData" xName="x" high="high" low="low" name="Forecast range"
                            type="RangeArea" fill="#8b5cf6" :opacity="0.28" :border="border2"
                            :marker="rangeMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 7. Column: annotation, error bars, drag editing, point selection and highlight -->
            <div id="column-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Column with Error Bar, Drag &amp; Annotation</h3>
                <ejs-chart id="column-chart" height="230px" :primaryXAxis="commonXAxis" :primaryYAxis="commonYAxis"
                    :tooltip="commonTooltip" selectionMode="Point" highlightMode="Series" :isMultiSelect="true"
                    :legendSettings="commonLegend">
                    <e-annotations>
                        <e-annotation :content="columnAnnotation" region="Series" coordinateUnits="Point" x="Q4"
                            :y="63"></e-annotation>
                    </e-annotations>
                    <e-series-collection>
                        <e-series :dataSource="categoryData" xName="x" yName="y" name="Sales" type="Column"
                            fill="#2563eb" :columnSpacing="0.2" :columnWidth="0.65" :cornerRadius="columnCornerRadius"
                            :errorBar="columnErrorBar" :dragSettings="columnDragSettings"
                            :marker="columnMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 8. Bar: numeric value axis, category axis, target stripline and labels -->
            <div id="bar-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Bar with Target Stripline &amp; Data Labels</h3>
                <ejs-chart id="bar-chart" height="250px" :primaryXAxis="barXAxis" :primaryYAxis="barYAxis"
                    :tooltip="barTooltip" :legendSettings="bottomLegend">
                    <e-series-collection>
                        <e-series :dataSource="categoryData" xName="x" yName="y" name="Sales" type="Bar" fill="#2563eb"
                            :columnSpacing="0.3" :columnWidth="0.65" :cornerRadius="barCornerRadius"
                            :marker="barMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 9. Stacking Column with Enhanced Labels -->
            <div id="stacking-column-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Monthly Sales by Channel</h3>
                <ejs-chart id="stacking-column-chart" height="250px" background="transparent"
                    :chartArea="chartAreaNoBorder" :primaryXAxis="stackXAxis" :primaryYAxis="stackYAxis"
                    :tooltip="stackTooltip" :stackLabels="stackLabels" :legendSettings="stackLegend">
                    <e-series-collection>
                        <e-series :dataSource="stackedA" xName="x" yName="y" name="Online" type="StackingColumn"
                            fill="#0D9488" :columnWidth="0.65" :columnSpacing="0.15" :cornerRadius="stackCornerRadius"
                            :marker="stackMarker"></e-series>
                        <e-series :dataSource="stackedB" xName="x" yName="y" name="Retail" type="StackingColumn"
                            fill="#F59E0B" :columnWidth="0.65" :columnSpacing="0.15" :marker="stackMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 10. Scatter -->
            <div id="scatter-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Scatter with Selection &amp; Log Axis</h3>
                <ejs-chart id="scatter-chart" height="230px" :primaryXAxis="scatterXAxis" :primaryYAxis="scatterYAxis"
                    :tooltip="sharedTooltip" selectionMode="DragXY" highlightMode="Point" :isMultiSelect="true"
                    :legendSettings="commonLegend">
                    <e-series-collection>
                        <e-series :dataSource="scatterData" xName="x" yName="y" name="Observations" type="Scatter"
                            fill="#7c3aed" :dragSettings="scatterDragSettings" :marker="scatterMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 11. Bubble: controlled bubble sizes, clean axes and informative tooltip -->
            <div id="bubble-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Bubble with Size Encoding &amp; Tooltip</h3>
                <ejs-chart id="bubble-chart" height="250px" :primaryXAxis="bubbleXAxis" :primaryYAxis="bubbleYAxis"
                    :tooltip="bubbleTooltip" :legendSettings="bottomLegend">
                    <e-series-collection>
                        <e-series :dataSource="bubbleData" xName="x" yName="y" size="size" name="Market segments"
                            type="Bubble" :minRadius="4" :maxRadius="11" fill="#0d9488"
                            :marker="bubbleMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 12. Candle: DateTime axis, RSI indicator pane, zooming, panning and trackball -->
            <div id="candle-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Candle with RSI Indicator, Zoom &amp; Pan</h3>
                <ejs-chart id="candle-chart" height="330px" :primaryXAxis="candleXAxis" :primaryYAxis="candleYAxis"
                    :tooltip="candleTooltip" :crosshair="candleCrosshair" :zoomSettings="candleZoom"
                    :legendSettings="bottomLegend">
                    <e-axes>
                        <e-axis name="rsiAxis" :rowIndex="1" :opposedPosition="true" :minimum="0" :maximum="100"
                            :interval="20" title="RSI" :majorGridLines="rsiGridLines"></e-axis>
                    </e-axes>
                    <e-rows>
                        <e-row height="70%"></e-row>
                        <e-row height="30%"></e-row>
                    </e-rows>
                    <e-series-collection>
                        <e-series :dataSource="candleData" xName="x" open="open" high="high" low="low" close="close"
                            volume="volume" name="Stock price" type="Candle" bullFillColor="#16a34a"
                            bearFillColor="#dc2626" :enableSolidCandles="true"></e-series>
                    </e-series-collection>
                    <e-indicators>
                        <e-indicator type="Rsi" field="Close" seriesName="Stock price" yAxisName="rsiAxis" :period="3"
                            :overBought="70" :overSold="30" :upperLine="rsiUpperLine"
                            :lowerLine="rsiLowerLine"></e-indicator>
                    </e-indicators>
                </ejs-chart>
            </div>

            <!-- 13. Waterfall -->
            <div id="waterfall-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Waterfall with Totals &amp; Connectors</h3>
                <ejs-chart id="waterfall-chart" height="230px" :primaryXAxis="commonXAxis" :primaryYAxis="commonYAxis"
                    :tooltip="commonTooltip" :legendSettings="hiddenLegend">
                    <e-series-collection>
                        <e-series :dataSource="categoryData" xName="x" yName="y" name="Net change" type="Waterfall"
                            :intermediateSumIndexes="[2, 4]" :sumIndexes="[5]" :connector="waterfallConnector"
                            fill="#14b8a6" negativeFillColor="#ef4444" summaryFillColor="#64748b"
                            :marker="waterfallMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 14. Histogram -->
            <div id="histogram-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Histogram with Normal Curve</h3>
                <ejs-chart id="histogram-chart" height="230px" :primaryXAxis="histogramXAxis"
                    :primaryYAxis="frequencyYAxis" :tooltip="commonTooltip" :legendSettings="hiddenLegend">
                    <e-series-collection>
                        <e-series :dataSource="histogramData" yName="y" name="Distribution" type="Histogram"
                            fill="#0d9488" :binInterval="10" :showNormalDistribution="true" :columnWidth="0.95"
                            :columnSpacing="0.02" :marker="topLabelMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 15. Pareto -->
            <div id="pareto-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Pareto with Cumulative Percentage</h3>
                <ejs-chart id="pareto-chart" height="230px" :primaryXAxis="paretoXAxis" :primaryYAxis="frequencyYAxis"
                    :tooltip="paretoTooltip" :legendSettings="bottomLegend">
                    <e-series-collection>
                        <e-series :dataSource="categoryData" xName="x" yName="y" name="Defects" type="Pareto"
                            fill="#0d9488" :marker="topLabelMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 16. Box and Whisker -->
            <div id="box-whisker-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Box &amp; Whisker with Mean &amp; Outliers</h3>
                <ejs-chart id="box-whisker-chart" height="230px" :primaryXAxis="commonXAxis" :primaryYAxis="boxYAxis"
                    :tooltip="commonTooltip" :legendSettings="commonLegend">
                    <e-series-collection>
                        <e-series :dataSource="boxData" xName="x" yName="y" name="Regional distribution"
                            type="BoxAndWhisker" fill="#0d9488" :showMean="true" :showOutliers="true"
                            boxPlotMode="Inclusive"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 17. Radar -->
            <div id="radar-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Radar with Performance vs Target</h3>
                <ejs-chart id="radar-chart" height="230px" :primaryXAxis="commonXAxis" :primaryYAxis="radarYAxis"
                    :tooltip="commonTooltip" :legendSettings="commonLegend">
                    <e-series-collection>
                        <e-series :dataSource="radarPerformanceData" xName="x" yName="y" name="Performance" type="Radar"
                            fill="#0d9488" drawType="Area" :opacity="0.35" :border="border2"
                            :marker="radarPerformanceMarker"></e-series>
                        <e-series :dataSource="radarTargetData" xName="x" yName="y" name="Target" type="Radar"
                            fill="#f97316" drawType="Line" dashArray="4,3" :marker="radarTargetMarker"></e-series>
                    </e-series-collection>
                </ejs-chart>
            </div>

            <!-- 18. Pie -->
            <div id="pie-sample" class="chart-gallery-card">
                <h3 class="chart-gallery-title">Pie with Exploded Slice &amp; Smart Labels</h3>
                <ejs-accumulationchart id="pie-chart" height="230px" :tooltip="pieTooltip" :legendSettings="pieLegend"
                    :enableSmartLabels="true" :enableAnimation="true">
                    <e-accumulation-series-collection>
                        <e-accumulation-series :dataSource="pieData" xName="x" yName="y" name="Device share" type="Pie"
                            radius="85%" :startAngle="0" :endAngle="360" :explode="true" :explodeIndex="1"
                            explodeOffset="8%" :dataLabel="pieDataLabel"></e-accumulation-series>
                    </e-accumulation-series-collection>
                </ejs-accumulationchart>
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
import { provide } from 'vue';
import {
    ChartComponent as EjsChart,
    SeriesCollectionDirective as ESeriesCollection,
    SeriesDirective as ESeries,
    TrendlinesDirective as ETrendlines,
    TrendlineDirective as ETrendline,
    IndicatorsDirective as EIndicators,
    IndicatorDirective as EIndicator,
    AnnotationsDirective as EAnnotations,
    AnnotationDirective as EAnnotation,
    AxesDirective as EAxes,
    AxisDirective as EAxis,
    RowsDirective as ERows,
    RowDirective as ERow,
    AccumulationChartComponent as EjsAccumulationchart,
    AccumulationSeriesCollectionDirective as EAccumulationSeriesCollection,
    AccumulationSeriesDirective as EAccumulationSeries,
    LineSeries, SplineSeries, StepLineSeries, AreaSeries, SplineAreaSeries,
    RangeAreaSeries, ColumnSeries, BarSeries, StackingColumnSeries,
    ScatterSeries, BubbleSeries, CandleSeries, WaterfallSeries,
    HistogramSeries, ParetoSeries, BoxAndWhiskerSeries, RadarSeries,
    Category, DateTime, Double, Logarithmic, Legend, Tooltip,
    DataLabel, Zoom, Highlight, Selection, StripLine, Trendlines, ErrorBar,
    ChartAnnotation, DataEditing, SeriesLabel, LastValueLabel, MultiLevelLabel,
    RsiIndicator, Crosshair,
    PieSeries, AccumulationLegend, AccumulationTooltip, AccumulationDataLabel,
    type AxisModel,
    type TooltipSettingsModel,
    type LegendSettingsModel,
    type MarkerSettingsModel,
    type ChartAreaModel,
    type CrosshairSettingsModel,
    type ZoomSettingsModel,
    type StackLabelSettingsModel,
    type AccumulationDataLabelSettingsModel
} from '@syncfusion/ej2-vue-charts';

provide('chart', [
    LineSeries, SplineSeries, StepLineSeries, AreaSeries, SplineAreaSeries,
    RangeAreaSeries, ColumnSeries, BarSeries, StackingColumnSeries,
    ScatterSeries, BubbleSeries, CandleSeries, WaterfallSeries,
    HistogramSeries, ParetoSeries, BoxAndWhiskerSeries, RadarSeries,
    Category, DateTime, Double, Logarithmic, Legend, Tooltip,
    DataLabel, Zoom, Highlight, Selection, StripLine, Trendlines, ErrorBar,
    ChartAnnotation, DataEditing, SeriesLabel, LastValueLabel, MultiLevelLabel,
    RsiIndicator, Crosshair
]);
provide('accumulationchart', [PieSeries, AccumulationLegend, AccumulationTooltip, AccumulationDataLabel]);

type Point = { x: string; y: number };
type RangePoint = { x: string; low: number; high: number };
type CandlePoint = { x: Date; open: number; high: number; low: number; close: number; volume: number };
type BubblePoint = { x: number; y: number; size: number };
type BoxPoint = { x: string; y: number[] };
type PiePoint = { x: string; y: number };

// ----- Data -----
const monthlyData: Point[] = [
    { x: 'Jan', y: 28 }, { x: 'Feb', y: 35 }, { x: 'Mar', y: 31 },
    { x: 'Apr', y: 46 }, { x: 'May', y: 40 }, { x: 'Jun', y: 54 },
    { x: 'Jul', y: 48 }, { x: 'Aug', y: 63 }, { x: 'Sep', y: 57 },
    { x: 'Oct', y: 72 }, { x: 'Nov', y: 66 }, { x: 'Dec', y: 82 }
];

const secondLineData: Point[] = [
    { x: 'Jan', y: 18 }, { x: 'Feb', y: 24 }, { x: 'Mar', y: 22 },
    { x: 'Apr', y: 30 }, { x: 'May', y: 27 }, { x: 'Jun', y: 38 },
    { x: 'Jul', y: 34 }, { x: 'Aug', y: 43 }, { x: 'Sep', y: 39 },
    { x: 'Oct', y: 49 }, { x: 'Nov', y: 45 }, { x: 'Dec', y: 56 }
];

const rangeData: RangePoint[] = [
    { x: 'Jan', low: 12, high: 30 }, { x: 'Feb', low: 18, high: 38 },
    { x: 'Mar', low: 16, high: 35 }, { x: 'Apr', low: 25, high: 48 },
    { x: 'May', low: 22, high: 44 }, { x: 'Jun', low: 34, high: 58 },
    { x: 'Jul', low: 30, high: 54 }, { x: 'Aug', low: 42, high: 68 },
    { x: 'Sep', low: 38, high: 63 }, { x: 'Oct', low: 48, high: 76 },
    { x: 'Nov', low: 44, high: 70 }, { x: 'Dec', low: 55, high: 86 }
];

const categoryData: Point[] = [
    { x: 'Q1', y: 34 }, { x: 'Q2', y: 48 }, { x: 'Q3', y: 42 },
    { x: 'Q4', y: 63 }, { x: 'Q5', y: 57 }, { x: 'Q6', y: 76 }
];

const stackedA: Point[] = [
    { x: 'Jan', y: 18 }, { x: 'Feb', y: 22 }, { x: 'Mar', y: 19 },
    { x: 'Apr', y: 26 }, { x: 'May', y: 24 }, { x: 'Jun', y: 30 }
];

const stackedB: Point[] = [
    { x: 'Jan', y: 12 }, { x: 'Feb', y: 15 }, { x: 'Mar', y: 14 },
    { x: 'Apr', y: 18 }, { x: 'May', y: 17 }, { x: 'Jun', y: 21 }
];

const scatterData: { x: number; y: number }[] = [
    { x: 1, y: 18 }, { x: 2, y: 24 }, { x: 3, y: 21 }, { x: 4, y: 34 },
    { x: 5, y: 29 }, { x: 6, y: 43 }, { x: 7, y: 38 }, { x: 8, y: 51 },
    { x: 9, y: 46 }, { x: 10, y: 60 }, { x: 11, y: 55 }, { x: 12, y: 68 }
];

const bubbleData: BubblePoint[] = [
    { x: 1.2, y: 18, size: 2 }, { x: 2.1, y: 32, size: 3 },
    { x: 3.0, y: 25, size: 2.5 }, { x: 4.0, y: 43, size: 4 },
    { x: 5.0, y: 36, size: 3 }, { x: 6.1, y: 57, size: 5 },
    { x: 7.0, y: 48, size: 4 }, { x: 8.0, y: 65, size: 3 }
];

const candleData: CandlePoint[] = [
    { x: new Date(2025, 0, 1), open: 102, high: 110, low: 98, close: 107, volume: 1200 },
    { x: new Date(2025, 0, 2), open: 107, high: 113, low: 103, close: 105, volume: 1450 },
    { x: new Date(2025, 0, 3), open: 105, high: 116, low: 104, close: 113, volume: 1600 },
    { x: new Date(2025, 0, 4), open: 113, high: 119, low: 109, close: 111, volume: 1380 },
    { x: new Date(2025, 0, 5), open: 111, high: 121, low: 110, close: 118, volume: 1720 },
    { x: new Date(2025, 0, 6), open: 118, high: 125, low: 115, close: 122, volume: 1900 },
    { x: new Date(2025, 0, 7), open: 122, high: 128, low: 117, close: 120, volume: 1810 }
];

const histogramData: { y: number }[] = [
    { y: 12 }, { y: 18 }, { y: 21 }, { y: 23 }, { y: 25 }, { y: 27 },
    { y: 29 }, { y: 31 }, { y: 32 }, { y: 34 }, { y: 35 }, { y: 36 },
    { y: 38 }, { y: 39 }, { y: 41 }, { y: 43 }, { y: 46 }, { y: 48 },
    { y: 52 }, { y: 55 }, { y: 59 }, { y: 63 }, { y: 67 }, { y: 72 }
];

const boxData: BoxPoint[] = [
    { x: 'North', y: [12, 18, 21, 25, 31, 35, 42] },
    { x: 'South', y: [15, 19, 24, 29, 33, 38, 44] },
    { x: 'East', y: [9, 14, 20, 23, 28, 34, 39] },
    { x: 'West', y: [18, 22, 27, 31, 36, 41, 47] }
];

const pieData: PiePoint[] = [
    { x: 'Desktop', y: 38 }, { x: 'Mobile', y: 32 },
    { x: 'Tablet', y: 18 }, { x: 'Other', y: 12 }
];

// ----- Shared settings -----
const commonTooltip: TooltipSettingsModel = { enable: true, showNearestTooltip: true, enableHighlight: true };
const sharedTooltip: TooltipSettingsModel = { ...commonTooltip, shared: true };
const commonLegend: LegendSettingsModel = { visible: true, enableHighlight: true, position: 'Bottom' };
const bottomLegend: LegendSettingsModel = { visible: true, position: 'Bottom' };
const hiddenLegend: LegendSettingsModel = { visible: false };
const commonXAxis: AxisModel = {
    valueType: 'Category',
    majorGridLines: { width: 0 },
    majorTickLines: { width: 0 }
};
const commonYAxis: AxisModel = {
    majorGridLines: { width: 1 },
    majorTickLines: { width: 0 },
    lineStyle: { width: 0 }
};

// 1. Line
const lineLegend: LegendSettingsModel = {
    ...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>'
};
const lineRevenueMarker: MarkerSettingsModel = { visible: true, width: 8, height: 8, shape: 'Circle', isFilled: true, border: { width: 2, color: '#ffffff' } };
const lineLastValueLabel = { enable: true, background: '#0f766e', font: { color: '#ffffff', fontWeight: '600' }, lineColor: '#0f766e', lineWidth: 1 };
const lineLabelSettings = { visible: true, text: 'Revenue', background: '#ecfeff', font: { color: '#0f766e', fontWeight: '600' } };
const lineOrdersMarker: MarkerSettingsModel = { visible: true, width: 7, height: 7, shape: 'Diamond', isFilled: true };

// 2. Spline
const splineActualMarker: MarkerSettingsModel = { visible: true, width: 6, height: 6 };
const splineTargetMarker: MarkerSettingsModel = { visible: true, width: 5, height: 5 };

// 3. Step Line
const stepXAxis: AxisModel = {
    ...commonXAxis,
    multiLevelLabels: [{
        categories: [
            { start: -0.5, end: 5.5, text: 'First half' },
            { start: 5.5, end: 11.5, text: 'Second half' }
        ]
    }]
};
const stepMarker: MarkerSettingsModel = { visible: true, width: 8, height: 8, shape: 'Circle', isFilled: true, border: { width: 2, color: '#ffffff' } };

// 4. Area
const areaGradient = {
    x1: 0, y1: 0, x2: 0, y2: 1,
    gradientColorStop: [
        { color: '#0d9488', offset: 0, opacity: 0.85 },
        { color: '#99f6e4', offset: 100, opacity: 0.18 }
    ]
};
const areaRevenueMarker: MarkerSettingsModel = { visible: true, width: 6, height: 6 };
const areaOrdersMarker: MarkerSettingsModel = { visible: true, width: 5, height: 5 };
const areaAnimation = { enable: true, duration: 900, delay: 0 };
const border2 = { width: 2 };

// 5. Spline Area
const splineAreaYAxis: AxisModel = { ...commonYAxis, minimum: 0, maximum: 100, interval: 25 };
const splineAreaBorder = { color: '#1d4ed8', width: 2.5 };
const splineAreaMarker: MarkerSettingsModel = { visible: true, width: 7, height: 7, fill: '#ffffff', border: { color: '#1d4ed8', width: 2 } };
const splineAreaAnimation = { enable: true, duration: 1000, delay: 0 };
const splineCompareMarker: MarkerSettingsModel = { visible: true, width: 7, height: 7, shape: 'Diamond', fill: '#475569', border: { color: '#ffffff', width: 1.5 } };
const splineCompareAnimation = { enable: true, duration: 1000, delay: 200 };

// 6. Range Area
const rangeTooltip: TooltipSettingsModel = { ...commonTooltip, format: '${point.x}: ${point.low} - ${point.high}' };
const rangeMarker: MarkerSettingsModel = { visible: true, width: 5, height: 5 };

// 7. Column
const columnAnnotation: string = '<div style="padding:5px 8px;background:#0f766e;color:#fff;border-radius:4px;font-size:11px;">Quarterly target achieved</div>';
const columnCornerRadius = { topLeft: 5, topRight: 5 };
const columnErrorBar = { visible: true };
const columnDragSettings = { enable: true, minY: 0, maxY: 100, fill: '#f97316' };
const columnMarker: MarkerSettingsModel = { dataLabel: { visible: true, position: 'Top', format: '{value}', font: { fontWeight: '600' } } };

// 8. Bar
const barXAxis: AxisModel = {
    valueType: 'Category', title: 'Quarter',
    majorGridLines: { width: 0 }, majorTickLines: { width: 0 },
    labelIntersectAction: 'Wrap'
};
const barYAxis: AxisModel = {
    valueType: 'Double', minimum: 0, maximum: 90, interval: 15,
    title: 'Sales', majorGridLines: { width: 1 }, majorTickLines: { width: 0 },
    stripLines: [{
        start: 50, end: 70, color: '#fbbf24', opacity: 0.18,
        text: 'Target range', visible: true, zIndex: 'Behind',
        textStyle: { color: '#92400e', size: '11px' }
    }]
};
const barTooltip: TooltipSettingsModel = { enable: true, format: '${point.x}: ${point.y} sales' };
const barCornerRadius = { topLeft: 4, topRight: 4 };
const barMarker: MarkerSettingsModel = {
    dataLabel: {
        visible: true, position: 'Middle', format: '{value}',
        font: { color: '#ffffff', size: '10px', fontWeight: '600' }
    }
};

// 9. Stacking Column
const chartAreaNoBorder: ChartAreaModel = { border: { width: 0 } };
const stackXAxis: AxisModel = {
    ...commonXAxis,
    title: 'Month',
    labelStyle: { color: '#475569', size: '12px' },
    titleStyle: { color: '#334155', size: '12px', fontWeight: '600' },
    majorGridLines: { width: 0 },
    lineStyle: { width: 1, color: '#cbd5e1' }
};
const stackYAxis: AxisModel = {
    ...commonYAxis,
    title: 'Sales',
    minimum: 0,
    maximum: 60,
    interval: 10,
    labelStyle: { color: '#64748b', size: '11px' },
    titleStyle: { color: '#334155', size: '12px', fontWeight: '600' },
    majorGridLines: { width: 1, color: '#e2e8f0', dashArray: '3,3' },
    lineStyle: { width: 0 }
};
const stackTooltip: TooltipSettingsModel = { enable: true, shared: true, showNearestTooltip: true, enableHighlight: true };
const stackLabels: StackLabelSettingsModel = {
    visible: true,
    format: '{value}',
    fill: '#334155',
    font: { color: '#ffffff', size: '11px', fontWeight: '600' }
};
const stackLegend: LegendSettingsModel = {
    visible: true,
    position: 'Bottom',
    alignment: 'Center',
    enableHighlight: true,
    textStyle: { color: '#475569', size: '12px' }
};
const stackCornerRadius = { topLeft: 0, topRight: 0 };
const stackMarker: MarkerSettingsModel = {
    dataLabel: {
        visible: true, position: 'Middle', format: '{value}',
        font: { color: '#ffffff', size: '11px', fontWeight: '600' }
    }
};

// 10. Scatter
const scatterXAxis: AxisModel = { valueType: 'Double', majorGridLines: { width: 0 } };
const scatterYAxis: AxisModel = { ...commonYAxis, valueType: 'Logarithmic', logBase: 10, minimum: 10 };
const scatterDragSettings = { enable: true, minY: 0, maxY: 100 };
const scatterMarker: MarkerSettingsModel = { visible: true, width: 10, height: 10, shape: 'Circle', border: { width: 1.5, color: '#ffffff' } };

// 11. Bubble
const bubbleXAxis: AxisModel = {
    valueType: 'Double', minimum: 0, maximum: 9, interval: 2,
    title: 'Marketing reach', majorGridLines: { width: 0 },
    majorTickLines: { width: 0 }
};
const bubbleYAxis: AxisModel = { ...commonYAxis, minimum: 0, maximum: 80, interval: 20, title: 'Engagement score' };
const bubbleTooltip: TooltipSettingsModel = { enable: true, format: 'Reach: ${point.x}<br/>Engagement: ${point.y}<br/>Relative size: ${point.size}' };
const bubbleMarker: MarkerSettingsModel = { visible: true, opacity: 0.48, border: { width: 1.5, color: '#ffffff' } };

// 12. Candle
const candleXAxis: AxisModel = { valueType: 'DateTime', labelFormat: 'dd MMM', majorGridLines: { width: 0 } };
const candleYAxis: AxisModel = {
    ...commonYAxis, title: 'Price', minimum: 90, maximum: 135, interval: 10,
    crosshairTooltip: { enable: true }
};
const candleTooltip: TooltipSettingsModel = { enable: true, shared: true };
const candleCrosshair: CrosshairSettingsModel = { enable: true, lineType: 'Both' };
const candleZoom: ZoomSettingsModel = {
    enableSelectionZooming: true, enableMouseWheelZooming: true,
    enablePinchZooming: true, enablePan: true, mode: 'X', showToolbar: true
};
const rsiGridLines = { width: 0.5 };
const rsiUpperLine = { color: '#ef4444', width: 1, dashArray: '4,2' };
const rsiLowerLine = { color: '#16a34a', width: 1, dashArray: '4,2' };

// 13. Waterfall
const waterfallConnector = { color: '#9ca3af', width: 1.5, dashArray: '3,2' };
const waterfallMarker: MarkerSettingsModel = { dataLabel: { visible: true, position: 'Outer', format: '{value}' } };

// 14. Histogram
const histogramXAxis: AxisModel = { valueType: 'Double', majorGridLines: { width: 0 }, title: 'Value range' };
const frequencyYAxis: AxisModel = { ...commonYAxis, title: 'Frequency' };
const topLabelMarker: MarkerSettingsModel = { dataLabel: { visible: true, position: 'Top', format: '{value}' } };

// 15. Pareto
const paretoXAxis: AxisModel = { ...commonXAxis, labelIntersectAction: 'Rotate45' };
const paretoTooltip: TooltipSettingsModel = { enable: true, shared: true, showNearestTooltip: true };

// 16. Box and Whisker
const boxYAxis: AxisModel = { ...commonYAxis, title: 'Measurement' };

// 17. Radar
const radarYAxis: AxisModel = { ...commonYAxis, minimum: 0, maximum: 100, interval: 20 };
const radarPerformanceData: Point[] = monthlyData.slice(0, 6);
const radarTargetData: Point[] = secondLineData.slice(0, 6);
const radarPerformanceMarker: MarkerSettingsModel = { visible: true, width: 8, height: 8 };
const radarTargetMarker: MarkerSettingsModel = { visible: true, width: 7, height: 7 };

// 18. Pie
const pieTooltip: TooltipSettingsModel = { enable: true, format: '${point.x}: ${point.y} (${point.percentage}%)' };
const pieLegend: LegendSettingsModel = { visible: true, position: 'Right', toggleVisibility: true };
const pieDataLabel: AccumulationDataLabelSettingsModel = {
    visible: true, position: 'Outside', name: 'x', showZero: false,
    connectorStyle: { length: '10px', type: 'Curve', width: 1 }
};
</script>

<style>
/*
 * Application layout and scrolling.
 * These rules are colocated with the gallery so no separate
 * application stylesheet change is required for this sample.
 */
html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

.chart-gallery-page {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 100%;
    height: auto !important;
    max-height: none !important;
    padding: 12px 16px 32px;
    overflow: visible !important;
}

.chart-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(320px, auto);
    align-items: stretch;
    gap: 16px;
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart-gallery-card {
    box-sizing: border-box;
    min-width: 0;
    min-height: 320px;
    height: auto;
    overflow: visible;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045);
}

.chart-gallery-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.1px;
    color: #1e293b;
}

.chart-gallery-card .e-chart,
.chart-gallery-card .e-accumulationchart {
    display: block;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1000px) {
    .chart-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .chart-gallery-page {
        padding: 8px 10px 24px;
    }

    .chart-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: minmax(300px, auto);
        gap: 12px;
    }

    .chart-gallery-card {
        min-height: 300px;
    }
}
</style>

```
