[英]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.