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