{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "chart-financialchart",
  "framework": "maui",
  "type": "registry:component",
  "component": "Chart",
  "variant": "financialchart",
  "dependencies": [
    "Syncfusion.Maui.Charts"
  ],
  "description": "Candlestick financial stock chart with linear trendline and interactive crosshairs.",
  "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/maui/llms.txt",
    "skillPack": "syncfusion/maui-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/maui/chart-financialchart.md"
  },
  "files": [
    {
      "target": "src/components/chart-financialchart/Chart.xaml",
      "content": "﻿<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<ContentPage xmlns=\"http://schemas.microsoft.com/dotnet/2021/maui\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\n             xmlns:model=\"clr-namespace:MAUI.Controls.Chart.FinancialChart\"\n             xmlns:chart=\"clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts\"\n             x:Class=\"MAUI.Controls.Chart.FinancialChart.FinancialChartView\"\n             x:DataType=\"model:FinancialChartViewModel\">\n    <chart:SfCartesianChart Margin=\"20\" Title=\"Stock Data of AEIS\">\n        <chart:SfCartesianChart.CrosshairBehavior>\n            <chart:ChartCrosshairBehavior/>\n        </chart:SfCartesianChart.CrosshairBehavior>\n        <chart:SfCartesianChart.XAxes>\n            <chart:DateTimeAxis x:Name=\"xAxis\" AutoScrollingDelta=\"3\" AutoScrollingMode=\"End\" AutoScrollingDeltaType=\"Months\" LabelCreated=\"Primary_LabelCreated\" ShowMajorGridLines=\"False\" ShowTrackballLabel=\"True\">\n                <chart:DateTimeAxis.LabelStyle>\n                    <chart:ChartAxisLabelStyle LabelFormat=\"MMM-dd\"></chart:ChartAxisLabelStyle>\n                </chart:DateTimeAxis.LabelStyle>\n            </chart:DateTimeAxis>\n        </chart:SfCartesianChart.XAxes>\n        <chart:SfCartesianChart.YAxes>\n            <chart:NumericalAxis ShowMinorGridLines=\"True\" Maximum=\"130\" x:Name=\"YAxis\" IsVisible=\"True\" ShowTrackballLabel=\"True\" LabelExtent=\"50\">\n                <chart:NumericalAxis.AxisLineStyle>\n                    <chart:ChartLineStyle StrokeWidth=\"0\"></chart:ChartLineStyle>\n                </chart:NumericalAxis.AxisLineStyle>\n                <chart:NumericalAxis.LabelStyle>\n                    <chart:ChartAxisLabelStyle LabelFormat=\"$0\"></chart:ChartAxisLabelStyle>\n                </chart:NumericalAxis.LabelStyle>\n            </chart:NumericalAxis>\n        </chart:SfCartesianChart.YAxes>\n        <chart:SfCartesianChart.Series>\n            <chart:CandleSeries ItemsSource=\"{Binding StockData}\"\n                                XBindingPath=\"Date\"\n                                Open=\"Open\"\n                                High=\"High\"\n                                Low=\"Low\"\n                                Close=\"Close\"\n                                Label=\"Stock\" EnableTooltip=\"True\">\n                <chart:CandleSeries.Trendlines>\n                    <chart:LinearTrendline Label=\"Linear Trend\" Stroke=\"#E8590C\" StrokeWidth=\"2\" StrokeDashArray=\"6,3\" />\n                </chart:CandleSeries.Trendlines>\n            </chart:CandleSeries>\n        </chart:SfCartesianChart.Series>\n        <chart:SfCartesianChart.ZoomPanBehavior>\n            <chart:ChartZoomPanBehavior x:Name=\"ZoomPan\" ZoomMode=\"X\" EnableDoubleTap=\"False\" EnablePanning=\"True\" EnablePinchZooming=\"True\"></chart:ChartZoomPanBehavior>\n        </chart:SfCartesianChart.ZoomPanBehavior>\n    </chart:SfCartesianChart>\n</ContentPage>\n\n\n"
    },
    {
      "target": "src/components/chart-financialchart/Chart.xaml.cs",
      "content": "﻿using Syncfusion.Maui.Charts;\n\nnamespace MAUI.Controls.Chart.FinancialChart\n{\n    public partial class FinancialChartView : ContentPage\n    {\n        public FinancialChartView()\n        {\n            InitializeComponent();\n            BindingContext = new FinancialChartViewModel();\n        }\n        int month = int.MaxValue;\n\n        private void Primary_LabelCreated(object? sender, ChartAxisLabelEventArgs e)\n        {\n            DateTime baseDate = new(1899, 12, 30);\n            var date = baseDate.AddDays(e.Position);\n            if (date.Month != month)\n            {\n                ChartAxisLabelStyle labelStyle = new();\n                labelStyle.LabelFormat = \"MMM-dd\";\n                labelStyle.FontAttributes = FontAttributes.Bold;\n                e.LabelStyle = labelStyle;\n\n                month = date.Month;\n            }\n            else\n            {\n                ChartAxisLabelStyle labelStyle = new();\n                labelStyle.LabelFormat = \"dd\";\n                e.LabelStyle = labelStyle;\n            }\n        }\n    }\n}\n"
    }
  ]
}