oxyplot c# wpf 中的标签重叠

labels overlapping in oxyplot c# wpf

我在 oxyplot 中创建了一个具有 DateTimeAxis 的绘图。我的问题是标签相互重叠,这让一切看起来都很乱。有谁知道是否有办法解决这个问题?

我试过这个解决方案:Oxyplot: Prevent X-Axis label from overlapping 但它不起作用。相反,整个轴都消失了。

这里的DateTime很长。尝试以 Date + \n + Time 格式拆分标签。因此 Date & Time 将被堆叠在彼此之下。

我很高兴它对你有用 :)