简体   繁体   English

标签在oxyplot c#wpf中重叠

[英]labels overlapping in oxyplot c# wpf

I've created a plot in oxyplot that has a DateTimeAxis. 我在oxyplot中创建了一个具有DateTimeAxis的图。 My problem is that the labels are overlapping eachother which makes everything look really messy. 我的问题是标签彼此重叠,这使所有内容看起来都很混乱。 Does anyone know if there is a way to solve this problem? 有谁知道是否有办法解决这个问题?

I've tried this solution: Oxyplot: Prevent X-Axis label from overlapping but it doesn't work. 我已经尝试过以下解决方案: Oxyplot:防止X轴标签重叠,但是它不起作用。 Instead the whole axis disappeared. 相反,整个轴消失了。

The DateTime here is long. 这里的DateTime很长。 Try to split the labels in the format Date + \\n + Time . 尝试以Date + \\ n + Time格式分割标签。 Thus Date & Time would get stacked below one another. 因此,日期和时间将相互堆叠。

I'm glad it worked out for u :) 我很高兴为您解决了问题:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM