![](/img/trans.png)
[英]Xaml, System.Windows.Controls.DataVisualization.Charting - Display X-Axis label as seconds instead of Time?
[英]Is it possible to display the x-axis values of the DataVisualization.Charting.Chart in hexadecimal?
最近開始在DataVisualization.Charting命名空間中使用.NET 4中包含的Chart控件。 我正在一個項目中,在校准期間,折線圖中的x軸上顯示了FPGA中使用的延遲值。 該值在其他地方用作十六進制值。
想知道是否存在一種以十六進制格式顯示x軸標簽的方法。 它並不重要,因為可以簡單地在運行后相對簡單地轉換值,但是肯定會有所增強。 任何幫助,不勝感激。
Axis
對象的LabelStyle
具有Format
屬性,因此可以使用任何標准C#格式字符串。 您可以這樣設定
chart1.ChartAreas[0].AxisX.LabelStyle.Format = "X4";
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.