Articles in this section

How to Add Background Image at .NET MAUI Cartesian Chart Plot Area?

In .NET MAUI SfCartesianChart, adding a background image to the plot area enhances visual appeal and provides contextual branding for data visualization. This feature allows you to display company logos, watermarks, or thematic imagery behind chart data while maintaining chart readability and professional presentation standards.

Step 1: Initialize the SfCartesianChart in .NET MAUI

Set up a basic SfCartesianChart with CategoryAxis for X-axis, NumericalAxis for Y-axis, and ColumnSeries bound to data collection. Configure the chart with appropriate styling and ensure the background is prepared for image overlay. For detailed steps, please refer to this documentation on SfCartesianChart.

XAML

<chart:SfCartesianChart x:Name="chart"> 
    <chart:SfCartesianChart.XAxes> 
        <chart:CategoryAxis/> 
    </chart:SfCartesianChart.XAxes> 

    <chart:SfCartesianChart.YAxes> 
        <chart:NumericalAxis/> 
    </chart:SfCartesianChart.YAxes> 

    <chart:ColumnSeries ItemsSource="{Binding Data}" 
                        XBindingPath="Department" 
                        YBindingPath="Performance"/> 
</chart:SfCartesianChart> 

Step 2: Create the Data Model and ViewModel

Create a data model to represent chart data and a corresponding ViewModel to manage the data collection. This example uses a company performance dashboard scenario with department-wise performance metrics.

C#

public class CompanyPerformanceModel 
{ 
    public CompanyPerformanceModel(string department, double performance) 
    { 
        Department = department; 
        Performance = performance; 
    } 

    public string Department { get; set; } 
    public double Performance { get; set; } 
} 

public class CompanyPerformanceViewModel 
{ 
    public List<CompanyPerformanceModel> Data { get; set; } 
    public CompanyPerformanceViewModel() 
    { 
        Data = new List<CompanyPerformanceModel> 
        { 
            new CompanyPerformanceModel("Sales", 85), 
            new CompanyPerformanceModel("Marketing", 78), 
            new CompanyPerformanceModel("IT", 92), 
            new CompanyPerformanceModel("HR", 71), 
            new CompanyPerformanceModel("Finance", 88), 
            new CompanyPerformanceModel("Operations", 83), 
            new CompanyPerformanceModel("R&D", 76) 
        }; 
    } 
} 

Step 3: Configure Chart with Background Image Using PlotAreaBackgroundView

Add the background image to the chart’s PlotAreaBackgroundView property. This property accepts View control, allowing you to place an Image control with appropriate opacity and aspect settings to ensure the background doesn’t interfere with chart readability.

XAML

<chart:SfCartesianChart> 

    <!-- Background Image Configuration --> 
    <chart:SfCartesianChart.PlotAreaBackgroundView> 
        <Grid> 
            <Image Source="company_logo_watermark.png"  
                   Opacity="0.15"  
                   Aspect="AspectFit"  
                   HorizontalOptions="Center" 
                   VerticalOptions="Center"/> 
        </Grid> 
    </chart:SfCartesianChart.PlotAreaBackgroundView> 

    <chart:SfCartesianChart.XAxes> 
        <chart:CategoryAxis/> 
    </chart:SfCartesianChart.XAxes> 

    <chart:SfCartesianChart.YAxes> 
        <chart:NumericalAxis/> 
    </chart:SfCartesianChart.YAxes>     

    <chart:ColumnSeries ItemsSource="{Binding Data}" 
                        XBindingPath="Department" 
                        YBindingPath="Performance"/> 
</chart:SfCartesianChart> 

This implementation provides a professional approach to adding contextual imagery to chart visualizations while maintaining excellent data readability and user experience.

Output:

Screenshot 2025-09-05 172211.png

Download the complete sample from GitHub.

Conclusion:
I hope you enjoyed learning how to add background images to the .NET MAUI Cartesian chart plot areas. This implementation demonstrates how to enhance chart visual appeal through thoughtful background imagery while maintaining professional presentation standards and optimal data readability.

You can refer to our .NET MAUI Cartesian Chart feature tour page to know about its other groundbreaking feature representations. Explore our .NET MAUI Cartesian Chart documentation to understand how to create and manipulate data.

For current customers, check out our components from the License and Downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our other controls.

Please let us know in the comments section if you have any queries or require clarification. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied