Skip to content

SyncfusionExamples/Creating-a-Waterfall-Chart-to-track-monthly-Sales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Creating-a-Waterfall-Chart-to-track-monthly-Sales

Waterfall Chart

WaterfallSeries clarifies the cumulative effect of a set of provided positive and negative values. The series is represented by a rectangle and a connector between the rectangles. To render a waterfall chart, create an instance of WaterfallSeries, and add it to the Series collection property of the SfCartesianChart

  • SummaryBindingPath of the string type is used to get or set the path value on the source subject to serve summary values to the series.
  • SummaryPointsBrush of brush type is used to change the fill of the summary segment of the series. .
  • NegativePointsBrush of brush type is used to change the fill of the negative segment of the series.
  • AllowAutoSum of bool type is used to change the summary segment calculation. By default, the property is true. When disabling this property, it renders the segment by using the y value of provided ItemsSource collection.
  • ShowConnectorLine of bool type is used to enable or disable the connector line. By default, the property value is true.

Connector line customization : The connector line can be customized by applying the ConnectorLineStyle property of the series.

The Waterfall chart type is used to visualize the progression or flow of a process or project over time. This sample demonstrates how to create a Waterfall Chart that tracks monthly Sales in .NET MAUI (SfCartesianChart)

WaterfallChartImage

Customizing the chart appearance

In this example, we have enhanced the appearance of our waterfall chart by customizing various elements, such as the appearance of axis elements, series, and titles.

Axis Customization

We can customize axis elements, including axis label style, major tickline style, and disabling the visibility of axis and axis major gridlines.

Series Customization

We can customize the series segment colors based on functionality using the NegativePointsBrush and SummaryPointsBrush properties. NegativePointsBrush fills the negative segments, while SummaryPointsBrush fills the summary segments. Further customization includes adding connector lines with their associated styles and integrating data labels with their respective styling properties onto the chart.

Adding a Chart Title

A chart title provides essential context to the plotted data.

For a detailed explanation, refer to the monthly sales tracking blog

About

This sample demonstrates how to create a Waterfall Chart that tracks monthly Sales in .NET MAUI (SfCartesianChart)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages