Tritium UI
TritiumCartesianChart
Plot business and financial series on a shared X/Y chart with zoom, a legend, and PNG export.
Key features
- Drop in line, spline, area, bar, stacked and 100% stacked bar/area, scatter, range area, error bar, waterfall, and box-and-whisker series.
- Chart OHLC and candlestick prices, with an optional volume pane and bull/bear colors.
- Bind each series to a collection with X and Y property paths, or numeric, category, or date X values.
- Use a linear or log Y axis, a secondary Y axis, axis titles, and vertical gridlines.
- Let the user zoom and pan, show a crosshair and tooltips, and sync zoom across charts that share a ZoomSyncGroup.
- Place the legend on any side, pick a named palette (teal, ocean, sunset, or mono), and override a series color.
- Draw reference lines and trend overlays: linear fit, moving average, quadratic fit, Bollinger bands, and VWAP.
- Animate series changes, show an empty-state message, and export the plot to a PNG stream or file.
- Select a point and handle SeriesPointSelected.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).
Main API
- Series . The line, bar, area, scatter, financial, and other series to plot.
- XAxisMode . Category, numeric, or date positions on the X axis.
- IsZoomEnabled . Lets the user zoom the plot; IsPanEnabled scrolls the zoomed view.
- SeriesPointSelected . Fires when the user selects a data point.
Basic example
Declare this namespace on the page.
xmlns:charts="clr-namespace:Tritium.Maui.Charts;assembly=Tritium.Maui.Charts"
<charts:TritiumCartesianChart XAxisMode="Category" IsLegendVisible="True" IsZoomEnabled="True">
<charts:TritiumCartesianChart.Series>
<charts:LineSeries ItemsSource="{Binding Points}" XBindingPath="Month" YBindingPath="Revenue" Label="Revenue" />
</charts:TritiumCartesianChart.Series>
</charts:TritiumCartesianChart> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.