簡體   English   中英

MS Chart AxisX標簽應對齊且不能交替

[英]MS Chart AxisX Labels Should Be Aligned Not Alternating

使用此處的圖像,我希望我的AxisX標簽(3月4月5月6月...總計)完全對齊,而不是如圖所示。 我應該修改哪些屬性? 非常感謝您能盡快提供答案。

在此處輸入圖片說明

經過大量的修改,我終於找到了可以解決上述問題的屬性。

Chart1.ChartAreas["ChartArea1"].AxisX.LabelAutoFitStyle = LabelAutoFitStyles.WordWrap; 
//This is a style that automatically changes during runtime.
//I added another line for the font size, just to be sure.  Consider it optional.
Chart1.ChartAreas["ChartArea1"].AxisX.LabelAutoFitMinFontSize = 11;

在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM