How to Add Chart Title in WPF LiveCharts

Viewed 2199

I have gone through the tutorials and examples in LiveChart's documentation (for WPF) but could not find any clue on how to add chart titles and subtitles. The ones available are axis title like the code below:

How can I add a title and subtitle to the WPF LiveChart (preferably in XAML)?

Axis Title:

 <lvc:CartesianChart.AxisX>
     <lvc:Axis Title="X-Axis Title"> </lvc:Axis>
 </lvc:CartesianChart.AxisX>
 <lvc:CartesianChart.AxisY>
      <lvc:Axis Title="Y-Axis Title" ></lvc:Axis>
 </lvc:CartesianChart.AxisY>

Chart Title: ???

<lvc:CartesianChart LegendLocation="Right" >
</lvc:CartesianChart>
1 Answers

There is no such property. You can use labels to achieve the same thing by placing them inside of a StackPanel with your chart.

Related