TimeHistogramPicker
Description
A histogram control for selecting a time range
The TimeHistogramPicker turns a DateTime array into adaptive buckets and lets users narrow the selected range from either side.
It sorts a private copy of the input values, so callers can pass unsorted data without changing their source array.
API reference
public sealed class TimeHistogramBucketA single bucket (time slice) inside the .
Constructors
Properties
public DateTime Start { get; set; }Starts the component's operation.
public sealed class TimeHistogramPicker : IComponentConstructors
public TimeHistogramPicker(DateTime[] values, int maxBuckets = 80)Initializes a new instance of this class.
Properties
Methods
public TimeHistogramPicker SetValues(DateTime[] values)Sets the values of the component.
public TimeHistogramPicker SetBuckets(TimeHistogramBucket[] buckets)Sets the buckets of the component.
public TimeHistogramPicker SetRange(DateTime from, DateTime to)Sets the range of the component.
public TimeHistogramPicker MaxBuckets(int maxBuckets)Configures the max buckets on the component.
public TimeHistogramPicker OnRangeChanged(Action<DateTime, DateTime, int> handler)Registers a callback invoked when the range changed event fires.
public TimeHistogramPicker WithCustomTimeRender(Func<DateTime, string> renderTime)Returns the component configured with the given custom time render.
public TimeHistogramPicker ShowCountOnHover(bool value = true)Shows the count on hover.
public TimeHistogramPicker ShowBucketTooltipOnHover(bool value = true)Shows the bucket tooltip on hover.
public TimeHistogramPicker Disabled(bool value = true)Disables the component.