We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net Maui, Pie Chart: Documentation shows using PrimaryValue, but PrimaryValue is Obsolete.
How do you set the DataLabel format? https://livecharts.dev/docs/Maui/2.0.0-rc2/PieChart.Pie%20series#datalabels DataLabelsSize = 22, DataLabelsPosition = LiveChartsCore.Measure.PolarLabelsPosition.Middle, DataLabelsFormatter = point => point.PrimaryValue.ToString("N2") + " elements"
The text was updated successfully, but these errors were encountered:
This is how I have my lineseries Y Axis set up. You should be able to use this example and apply it to your chart type
YToolTipLabelFormatter = (chartPoint) => $"Flu: {chartPoint.Model?.Property1Name:N0} {Environment.NewLine}Wave: {chartPoint.Model?.Property2Name:N0}",
Sorry, something went wrong.
You can do it like this:
// … new HeatSeries<WeightedPoint> { // … YToolTipLabelFormatter = (point) => $"{point.Model?.Weight}", // … } // …
Other options with the x and y values:
YToolTipLabelFormatter = (point) => $"Value: {point.Model?.Weight}\r\nX: {point.Model?.X}\r\nY: {point.Model?.Y}",
Copied from my Answer on SO
No branches or pull requests
.Net Maui, Pie Chart: Documentation shows using PrimaryValue, but PrimaryValue is Obsolete.
How do you set the DataLabel format?
https://livecharts.dev/docs/Maui/2.0.0-rc2/PieChart.Pie%20series#datalabels
DataLabelsSize = 22,
DataLabelsPosition = LiveChartsCore.Measure.PolarLabelsPosition.Middle,
DataLabelsFormatter = point => point.PrimaryValue.ToString("N2") + " elements"
The text was updated successfully, but these errors were encountered: