MicroBoxPlot Class
Represents a box plot control.
[TemplatePart(Name = "PART_Canvas", Type = typeof(Canvas))]
public class MicroBoxPlot : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Constructors
MicroBoxPlot()
Initializes an instance of the class.
public MicroBoxPlot()
Properties
AreOutliersVisible
Indicates whether outliers should be rendered.
BoxStyle
The Style used to render the box.
IqrMultiplier
A value indicating the amount to multiply the IQR by to find the range of the whiskers.
public double IqrMultiplier { get; set; }
Property Value
- double:
The default value is
1.5.
Remarks
IQR stands for interquartile range, which is equal to the difference of the upper and lower quartiles.
IsMeanVisible
Indicates whether the mean value bar should be rendered.
IsMedianVisible
Indicates whether the median value bar should be rendered.
LegendStringFormat
The format that the MicroBoxPlot control will display in a tool tip.
public string? LegendStringFormat { get; set; }
Property Value
Remarks
The format string will be passed the following parameters:
- {0} - The minimum value.
- {1} - The lower whisker value.
- {2} - The first quartile value.
- {3} - The median value.
- {4} - The third quartile value.
- {5} - The upper whisker value.
- {6} - The maximum value.
- {7} - The mean value.
- {8} - The number of values.
Maximum
The maximum value of the chart.
MeanStyle
The style of the mean value bar.
MedianStyle
The style of the median value bar.
Minimum
The minimum value of the chart.
Orientation
The orientation of the MicroBoxPlot.
public Orientation Orientation { get; set; }
Property Value
- Orientation:
The default value is Horizontal.
OutlierStyle
The style of the outlier marker.
Values
The list of data values to be represented by the chart.
[TypeConverter(typeof(MicroSeriesItemsSourceConverter))]
public IEnumerable<double>? Values { get; set; }
Property Value
WhiskerAscent
A Unit indicating the ascent of the whisker endline.
public Unit WhiskerAscent { get; set; }
Property Value
- Unit:
The default value is
50%.
Remarks
Ascent is height when in a horizontal graph, and width when in a vertical graph.
WhiskerStyle
The style of the whisker line.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The type-specific AutomationPeer implementation.
OnSizeChanged(object, SizeChangedEventArgs)
Handles the SizeChanged event of the control.
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| sender | object | The source of the event. |
| e | SizeChangedEventArgs | The event data. |
Refresh()
Updates the chart based on the current state.
public void Refresh()
Fields
AreOutliersVisibleProperty
Defines the AreOutliersVisible property.
public static readonly DependencyProperty AreOutliersVisibleProperty
BoxStyleProperty
Defines the BoxStyle property.
public static readonly DependencyProperty BoxStyleProperty
IqrMultiplierProperty
Defines the IqrMultiplier property.
public static readonly DependencyProperty IqrMultiplierProperty
IsMeanVisibleProperty
Defines the IsMeanVisible property.
public static readonly DependencyProperty IsMeanVisibleProperty
IsMedianVisibleProperty
Defines the IsMedianVisible property.
public static readonly DependencyProperty IsMedianVisibleProperty
LegendStringFormatProperty
Defines the LegendStringFormat property.
public static readonly DependencyProperty LegendStringFormatProperty
MaximumProperty
Defines the Maximum property.
public static readonly DependencyProperty MaximumProperty
MeanStyleProperty
Defines the MeanStyle property.
public static readonly DependencyProperty MeanStyleProperty
MedianStyleProperty
Defines the MedianStyle property.
public static readonly DependencyProperty MedianStyleProperty
MinimumProperty
Defines the Minimum property.
public static readonly DependencyProperty MinimumProperty
OrientationProperty
Defines the Orientation property.
public static readonly DependencyProperty OrientationProperty
OutlierStyleProperty
Defines the OutlierStyle property.
public static readonly DependencyProperty OutlierStyleProperty
ValuesProperty
Defines the Values property.
public static readonly DependencyProperty ValuesProperty
WhiskerAscentProperty
Defines the WhiskerAscent property.
public static readonly DependencyProperty WhiskerAscentProperty
WhiskerStyleProperty
Defines the WhiskerStyle property.
public static readonly DependencyProperty WhiskerStyleProperty