Skip to content
Discussion options

You must be logged in to vote

You code do something like this:

[ObservableProperty]
private List<ISeries> LineSeries = new();

...

foreach (string stringValue in stringList)
{
	LineSeries.Add(new ColumnSeries<YearlyStat>()
	{
		Name = stringValue,
		Values = Data.Where(w => w.StringValue.Trim().Equals(stringValue)),
		TooltipLabelFormatter = (chartPoint) => $"{chartPoint.Context.Series.Name}: {chartPoint.PrimaryValue:C0}",  <-- C0 formats the value as currency
	});
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Thinking-319
Comment options

Answer selected by Thinking-319
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants