-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
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
DataLabel do not display #1145
Comments
I think they are there, they are just outside of the bounds of the chart, try to set the alignment to bottom, or use the DataPadding property in your series to set a greater "data padding" |
The thing here is that labels must be outside of the chart bounds, why don't you just place the labels at bottom in your top series? |
Because that will lead to inconsistent display styles, and the top line is not always on top |
the chart also has the DrawMargin property, it allows you to set a margin to the area where series are drawn. |
Thanks for the feedback, it seems that the labels paint set a Clip to the draw margin, we need a way to change that, that is currently not supported. |
In beta.920 we can now customize the labels clip rectangle; in your case you can try: new LineSeries<double>
{
Values = new double[] { 2, 1, 3, 5, 3, 4, 6 },
Fill = null,
ClippingMode = LiveChartsCore.Measure.ClipMode.X, // None would also work
} |
Describe the bug
![123123](https://private-user-images.githubusercontent.com/48863486/257137524-0f707c60-1d85-488a-9fd0-dbb28adece6f.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTgxNzMsIm5iZiI6MTczOTU5Nzg3MywicGF0aCI6Ii80ODg2MzQ4Ni8yNTcxMzc1MjQtMGY3MDdjNjAtMWQ4NS00ODhhLTlmZDAtZGJiMjhhZGVjZTZmLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA1Mzc1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5YzIwOTEyN2JjZDY5ZDNiMmI1MWU1OTY0MDk2YzZiZjU0OTc5NDRmZjJhZjJhZWUzNWFiMjBkNGE4YzE0OTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BkzXA6WSqARZdnDKxud3BFbVQc4i6SxYDmg3CA--tjE)
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: