Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

WPF Graph - format of AxisDateTime

$
0
0

Hello.

I am using NI Graphs in my WPF application. The graphs are binded to ChartCollection <TimeSpan, double>. Here is my graph XAML code and the picture:

 

<ni:Graph x:Name="graph_temperatures" PreferIndexData="False" RenderMode="Raster">
     <ni:Graph.Axes>
          <ni:AxisDateTime Orientation="Horizontal"/>
          <ni:AxisDouble Label="Temperature [°C]" Orientation="Vertical" Range="0, 100, System.Double"/>
     </ni:Graph.Axes>

</ni:Graph>

 

2017-08-29_09h48_33.png

 

And I would like to change default format of datetime axis to be like this: "hh:mm:ss". How can I easily do it please?

Thank you for support.

Jakub


Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>