Jump to content
Software FX Community

Timespan axis format


Recommended Posts


 I'm looking for some guidance as to how to format the Y axis nicely when it shows a timespan. I'm adding 5 points is a test, varying from 1 second to 3 seconds. On my Y-axis I see the value of 00:00:01 9 times and 00:00:02 10 times, while I would like to see it just once, as I would with standard numbers. Any thoughts?


Window x:Class="WpfApplicationTestGraph.Window1"



Title="Window1" Height="600" Width="800"





<my:Chart Name="chart1" Gallery="Line" Style="{x:Static my1:Basic.Style}">

<my:SeriesAttributes ItemsSource="{Binding Path=TheData}" BindingPath="RunDuration" Content="RunDuration"/>


<my:Title>Workflow Run Time</my:Title>





<my:AxisLabelAttributes Format="TimeSpan" CustomFormat="hh:mm:ss"/>









Link to comment
Share on other sites

We fixed a couple of issues in how we handle TimeSpan. The hotfix for RC1 should be available tomorrow (build 3408 or later) here

Note that with the update you do not need to set the CustomFormat to hh:mm:ss as it is the default (I am guessing you were setting it because of an issue where we generated empty labels).


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...