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 TimeHistogramPicker.
- Namespace
- Tesserae
Constructors
| Name | Description |
|---|---|
| TimeHistogramBucket | Initializes a new instance of this class. |
| Overload | |
|---|---|
| TimeHistogramBucket() | Initializes a new instance of this class. |
| TimeHistogramBucket(DateTime, DateTime, int) | Initializes a new instance of this class. |
public sealed class TimeHistogramPicker : IComponent- Namespace
- Tesserae
- Implements
- IComponent
Constructors
| Name | Description |
|---|---|
| TimeHistogramPicker | Initializes a new instance of this class. |
| Overload | |
|---|---|
| TimeHistogramPicker(DateTime[], int) | Initializes a new instance of this class. |
| TimeHistogramPicker(TimeHistogramBucket[]) | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| SelectedFrom | Gets or sets the selected from. |
| SelectedTo | Gets or sets the selected to. |
| SelectedCount | Gets or sets the selected count. |
Methods
| Name | Description |
|---|---|
| SetValues | Sets the values of the component. |
| SetBuckets | Sets the buckets of the component. |
| SetRange | Sets the range of the component. |
| MaxBuckets | Configures the max buckets on the component. |
| OnRangeChanged | Registers a callback invoked when the range changed event fires. |
| WithCustomTimeRender | Returns the component configured with the given custom time render. |
| ShowCountOnHover | Shows the count on hover. |
| ShowBucketTooltipOnHover | Shows the bucket tooltip on hover. |
| Disabled | Disables the component. |
| Render | Renders the component's root HTML element. |
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.