本文介绍了Silverlight / WPF图表工具包。我可以更改CategoryAxis上的刻度标记的频率吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

LinearAxis上有Interval属性,但CategoryAxis上没有。我需要控制X轴上刻度线的频率。



本地逻辑有这么多的标记,我不能读,即使我伸展图表横跨3个宽的显示器!

解决方案

几个建议...



1。 CategoryAxis有一个AxisLabelStyle属性,您可以使用它来设置一个具有较小FontSize的样式,或更稠密的FontFamily



2。)CategoryAxis也有MajorTickMarkStyle,以设置线描边刷或行程厚度。使用StrokeThickness为0来隐藏它们。



3)也许你可以找到一种方法来改变AxisLabel容器的宽度,并使标签文本换行。 / p>

祝你好运
Jim McCurdy


There is Interval property on LinearAxis but none on CategoryAxis. I need to control frequency of tick marks on X axis.

The native logic does so many marks that I cant read even if I stretch the chart across 3 wide monitors!!

解决方案

A couple of suggestions...

1.) CategoryAxis has a AxisLabelStyle property which you can use to set in a Style with a smaller FontSize, or a more condensed FontFamily

2.) CategoryAxis also has MajorTickMarkStyle which you can use to set the Line Stroke brush or StrokeThickness. Use a StrokeThickness of 0 to hide them.

3.) Maybe you can find a way to get a changethe Width of the AxisLabel's container and make the label text wrap.

Good luckJim McCurdy

这篇关于Silverlight / WPF图表工具包。我可以更改CategoryAxis上的刻度标记的频率吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 16:34