Skip to main content

Event timeline chart

info

Charts are available with Avalonia Pro.

Event timeline charts visualize a series of events chronologically. They provide a clear representation of historical or planned occurrences along a fixed time axis.

Event timeline chart displaying chronological milestones as labeled markers along a horizontal time axis.

When to use

  • Historical records: Visualizing milestones, product launches, or life events.
  • Audit trails: Showing system logs or user activities in sequence.
  • Vertical timelines: Ideal for mobile-friendly or column-based layouts.

Code example

XAML

<charts:EventTimelineChart Name="EventTimelineSample"
Title="Product Launches"
Height="300"
ItemsSource="{Binding TimelineEvents}"
DatePath="Date"
LabelPath="Event" />

Data model (C#)

using System;

public record TimelineEvent(DateTime Date, string Event);

public ObservableCollection<TimelineEvent> TimelineEvents { get; } = new()
{
new(new DateTime(2024, 1, 15), "v1.0 Release"),
new(new DateTime(2024, 4, 10), "v2.0 Beta"),
new(new DateTime(2024, 7, 20), "v2.0 Release"),
new(new DateTime(2024, 10, 5), "v3.0 Preview"),
new(new DateTime(2024, 12, 1), "v3.0 Release")
};

Common properties

PropertyDescriptionDefault
ItemsSourceThe collection of events.null
DatePathPath to the DateTime property.null
LabelPathPath to the event description.null
DescriptionPathOptional path to longer supporting text.null
BrushPathOptional path to a brush or color value for each item.null
MarkerSizeSize of the event markers.12.0
StrokeThicknessThickness of the main timeline.2.0
OrientationOrientation of the chart, Horizontal or Vertical.Horizontal