BungeeJumping

项目中使用Chart控件,在使用过程中发现X轴数据超过一定数量时 展现不全。和师傅试了很久终于找到解决方法。

只需:

 

<axisx linecolor="64, 64, 64, 64" Interval="1" IntervalOffset="Auto" LabelsAutoFit="true"  IntervalAutoMode="VariableCount">
  <labelstyle font="Trebuchet MS, 8.25pt, style=Bold" offsetlabels="False"></labelstyle>
<majorgrid linecolor="64, 64, 64, 64"></majorgrid>
</axisx>

Interval="1" IntervalAutoMode="VariableCount" 设置为这个属性即可。

同时在对于展现图标表头数据:

 

   Chart1.Series["Series 1"].ShowLabelAsValue = true;

 

分类:

技术点:

相关文章:

  • 2021-11-04
  • 2021-10-04
  • 2021-11-18
  • 2021-11-24
  • 2021-11-03
  • 2022-01-15
  • 2021-11-03
  • 2021-11-24
猜你喜欢
  • 2021-11-03
  • 2022-01-06
  • 2021-08-19
  • 2021-11-19
  • 2021-11-05
相关资源
相似解决方案