Syncfusion Feedback


Overview

The .NET MAUI 100% stacked area chart displays multiple series of data as stacked areas, ensuring that the cumulative proportions of the stacked elements always totals 100%. The y-axis will always render within the range 0–100. You can create beautiful, animated, real-time, high-performance stacked area charts that also support interactive features such as zooming and panning, trackball, and tooltip.

.NET MAUI 100% Stacked Area Chart documentation

.NET MAUI 100% stacked area chart.


Key features

.NET MAUI 100% stacked area chart with data labels.

Data labels

Data labels display information about data points. Customize the labels’ foreground, border, and background. Rotate a data label by a specified angle.

.NET MAUI 100% stacked area chart with UI appearance customization.

UI styling

The .NET MAUI 100% stacked area chart offers UI customization using built-in APIs for adjusting colors and borders, enhancing its visual appeal with a distinctive look.

.NET MAUI 100% stacked area chart with empty or null points.

Empty or null points

Empty or null data points are elegantly handled in the .NET MAUI 100% stacked area chart.


Code example

  1. <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  3. x:Class="ChartExample.MainPage"
  4. xmlns:local="using:ChartExample"
  5. xmlns:chart="clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts">
  6. <Grid>
  7. <chart:SfCartesianChart HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
  8. <!--Setting BindingContext-->
  9. <chart:SfCartesianChart.BindingContext>
  10. <local:ViewModel/>
  11. </chart:SfCartesianChart.BindingContext>
  12.  
  13. <!--Initialize the horizontal axis for the .NET MAUI Cartesian Chart.-->
  14. <chart:SfCartesianChart.XAxes>
  15. <chart:CategoryAxis/>
  16. </chart:SfCartesianChart.XAxes>
  17.  
  18. <!--Initialize the vertical axis for the .NET MAUI Cartesian Chart.-->
  19. <chart:SfCartesianChart.YAxes>
  20. <chart:NumericalAxis/>
  21. </chart:SfCartesianChart.YAxes>
  22. <!--Adding Stacked Area 100 Series to the .NET MAUI Cartesian Chart.-->
  23. <chart:SfCartesianChart.Series>
  24. <chart:StackingArea100Series
  25. ItemsSource="{Binding Data}"
  26. XBindingPath="Month"
  27. YBindingPath="Target">
  28. </chart:StackingArea100Series>
  29. <chart:StackingArea100Series
  30. ItemsSource="{Binding Data}"
  31. XBindingPath="Month"
  32. YBindingPath="High">
  33. </chart:StackingArea100Series>
  34. <chart:StackingArea100Series
  35. ItemsSource="{Binding Data}"
  36. XBindingPath="Month"
  37. YBindingPath="Low">
  38. </chart:StackingArea100Series>
  39. </chart:SfCartesianChart.Series>
  40. </chart:SfCartesianChart>
  41. </Grid>
  42. </ContentPage>
  1. public class Model
  2. {
  3. public string Month { get; set; }
  4. public double Target { get; set; }
  5. public double High { get; set; }
  6. public double Low { get; set; }
  7.  
  8. public Model(string xValue, double yValue, double high, double low)
  9. {
  10. Month = xValue;
  11. Target = yValue;
  12. High = high;
  13. Low = low;
  14. }
  15. }
  16.  
  17. public class ViewModel
  18. {
  19. public ObservableCollection<Model> Data { get; set; }
  20. public ViewModel()
  21. {
  22. Data = new ObservableCollection<Model>()
  23. {
  24. new Model("2010", 100,90,60),
  25. new Model("2011", 120,100,80),
  26. new Model("2012", 140,120,90),
  27. new Model("2013", 160,140,100),
  28. };
  29. }
  30. }

Learning resources

Navigate to GitHub code used to configure the .NET MAUI 100% stacked area chart.

GitHub Code

The .NET MAUI 100% stacked area chart configuration code is available on GitHub.

Navigate to the options available in the User Guide to customize the .NET MAUI 100% stacked area chart.

.NET MAUI 100% Stacked Area Chart User Guide

See available options to customize the .NET MAUI 100% stacked area chart.

Navigate to the API references documentation for the .NET MAUI 100% stacked area chart.

.NET MAUI 100% Stacked Area Chart API References

Explore the .NET MAUI 100% stacked area chart APIs.

Scroll up icon
Chat with us