Silverlight/WPF charting toolkit. Can I change frequency of tick marks on CategoryAxis?

情到浓时终转凉″ 提交于 2020-01-04 02:09:27

问题


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!!


回答1:


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 luck Jim McCurdy



来源:https://stackoverflow.com/questions/2395774/silverlight-wpf-charting-toolkit-can-i-change-frequency-of-tick-marks-on-catego

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!