I need to show in my chart two value: Total and Profit. See the screeenshot of my chart:
273,71 is a profit. Total is 1094,00. This profit represents 25% of total. How can i do to show Total and profit? See below my chart using SfChart
private async void CriaChart()
{
SfChart chart = new SfChart();
DataService dataService = new DataService();
try
{
PieSeries pieSeries = new PieSeries()
{
ItemsSource = await dataService.GetDataGrid(IdOrcamento),
XBindingPath = "TotalLucro",
YBindingPath = "TotalVenda"
};
pieSeries.DataMarker = new ChartDataMarker();
chart.Legend = new ChartLegend();
chart.Title.Text = "Gráfico da Vendas";
pieSeries.Label = "Lucro";
pieSeries.DataMarker.LabelContent = LabelContent.Percentage;
chart.Series.Add(pieSeries);
this.Content = chart;
}
catch(Exception ex)
{
string err = ex.Message;
}
}