This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
i cant seem to find any examples using this label converter? the help file sisnt mention it, except for the rather useless generated documentation dor the class itself.
|
|
|
Hello First create a class that has a DateTime property and a Double property. Populate a chart with instances of this class. In XAML, on the data series, set the XBinding to be a binding to the DateTime property, and the YBinding to be a binding to the Double property. This will look something like: XBinding="{Binding DateTime}" where the property has been named "DateTime". Then you can set the ValueConverter property of the XAxis to be an instance of the DateTimeAxisValueConverter. Note that it's best not to set the Minimum, Maximum or MajorTickSpacing properties of the axis when using a DateTimeAxisValueConverter. Let the axis set these automatically. - Jason |
|
|
Thanks for the response Jason, but it's the DateTimeLabelConverter I was asking about :) Do I need to explicitly specify DateTimeLabelConverter at all, or is that the default or something if my axis is plotting DateTime data? Looking at the docs, this type doesn't have any properties, and only a parameterless constructor, so I see no way to configure an instance of this guy.
|
|
|
Hello Sorry for the confusion and thanks for pointing this out. To plot DateTime data you can use the method that I described using the DateTimeAxisValueConverter. DateTimeAxisLabelConverter has now been removed. This update will be available through the nightly builds from tomorrow the 3rd of May. - Jason |
|