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
|
Hi there, If one axis is datetime, if we did not set the axis format, or set it as {0:yy-MM-dd}, some of the tick label is repeated, then when you zoom the tick label will be the same, please see attached images. My date is from 2000-01-01T01:00 to 2000-01-02T16:00 If we can set axis format in class DateTimeIntervalDefinitionfor/ DateTimeAxisValueConverter, then the problem will be solved if you can handle axis format changes when zooming. For example, when the time span is over a few years, we want to use {0:yyyy} format, if the time span is over a few month, I want o use {0:yyyy-MM}, and if is a few minutes I want to use {0:HH:MM:SS}. It does not need to be automatically done, but If we can set it, then it will be good enough for us. I am using July 29th 5.0 nightly builds. Thanks Gordon |
|
|
Hello Gordon Thanks for this suggestion. The next nightly build will include a new property called IntervalFormat on the DateTimeIntervalDefinition class. You can set this property to be the string format you want to be applied to labels within that date time interval. The ChartAxis will then apply the appropriate format to the labels for you. The LabelFormat property of the ChartAxis has highest priority, so make sure not to set the LabelFormat property of the axis any more. Jason Fauchelle |
|
|
Thanks Jason. It is working very well. you can safely merge this to version 6. Gordon |
|
|
Thanks Gordon This has been merged into version 6.0. Jason Fauchelle |
|