Profile Picture

NDateTimeScaleConfigurator AutoScale: current format

Posted By Ereona 13 Years Ago
Author
Message
Ereona
Posted 13 Years Ago
View Quick Profile
Forum Member

Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)Forum Member (43 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 43, Visits: 1
Hello.
I use autoscale for OX axis like this:
List dateTimeUnits = new List();

dateTimeUnits.Add(NDateTimeUnit.Second);
dateTimeUnits.Add(NDateTimeUnit.Minute);
dateTimeUnits.Add(NDateTimeUnit.Hour);
dateTimeUnits.Add(NDateTimeUnit.Day);
dateTimeUnits.Add(NDateTimeUnit.Month);
dateTimeUnits.Add(NDateTimeUnit.Year);

var autoUnits = dateTimeUnits.ToArray();

dateConfigurator.MajorTickMode = MajorTickMode.AutoMaxCount;

dateConfigurator.InflateViewRangeBegin = false;
dateConfigurator.InflateViewRangeEnd = true;

dateConfigurator.EnableUnitSensitiveFormatting = true;
dateConfigurator.AutoDateTimeUnits = autoUnits;
dateConfigurator.LabelValueFormatter = new NDateTimeValueFormatter("dd.MM HH:mm:ss");
The value format depends on graph's scale. How I can determine the current Date-time unit and value format in axes's properties?




Similar Topics


Reading This Topic