MicroBoxPlot Class
Represents a box plot control.
[TemplatePart(Name = "PART_Canvas", Type = typeof(Canvas))]
public class MicroBoxPlot : Control, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control Object
Constructors
MicroBoxPlot()
Initializes a new instance of the MicroBoxPlot class.
public MicroBoxPlot()
Properties
AreOutliersVisible
Gets or sets a boolean value indicating whether or not outliers should be rendered. This is a dependency property.
public bool AreOutliersVisible { get; set; }
Property Value
- Boolean:
true
if outlier values are visible; otherwise,false
. The default value isfalse
.
BoxStyle
Gets or sets the Style used to render the box. This is a dependency property.
public Style BoxStyle { get; set; }
Property Value
IqrMultiplier
Gets or sets a value indicating the amount to multiply the IQR by to find the range of the whiskers. This is a dependency property.
public double IqrMultiplier { get; set; }
Property Value
- Double:
A value indicating the amount to multiply the IQR by to find the range of the whiskers. 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
Gets or sets a boolean value indicating whether or not the mean value bar should be rendered. This is a dependency property.
public bool IsMeanVisible { get; set; }
Property Value
- Boolean:
true
if the mean value is visible; otherwise,false
. The default value isfalse
.
IsMedianVisible
Gets or sets a boolean value indicating whether or not the median value bar should be rendered. This is a dependency property.
public bool IsMedianVisible { get; set; }
Property Value
- Boolean:
true
if the median value is visible; otherwise,false
. The default value istrue
.
LegendStringFormat
Gets or sets the format that the MicroBoxPlot control will display in a tool tip. This is a dependency property.
public string LegendStringFormat { get; set; }
Property Value
- String:
The string format that determines how to display a tool tip. The default value is null.
Remarks
The format string will be passed the following parameters:
Maximum
Gets or sets the maximum value of the chart. This is a dependency property.
public double Maximum { get; set; }
Property Value
- Double:
The maximum value of the chart. The default value is
NaN
.
MeanStyle
Gets or sets the style of the mean value bar. This is a dependency property.
public Style MeanStyle { get; set; }
Property Value
- Style:
The style of the mean value bar. The default value is null.
MedianStyle
Gets or sets the style of the median value bar. This is a dependency property.
public Style MedianStyle { get; set; }
Property Value
- Style:
The style of the median value bar. The default value is null.
Minimum
Gets or sets the minimum value of the chart. This is a dependency property.
public double Minimum { get; set; }
Property Value
- Double:
The minimum value of the chart. The default value is
NaN
.
Orientation
Gets or sets the orientation of the MicroBoxPlot. This is a dependency property.
public Orientation Orientation { get; set; }
Property Value
- Orientation:
The orientation of the MicroBoxPlot. The default value is
Horizontal
.
OutlierStyle
Gets or sets the style of the outlier marker. This is a dependency property.
public Style OutlierStyle { get; set; }
Property Value
- Style:
The style of the outlier marker. The default value is null.
Values
Gets or sets the list of data values to be represented by the chart. This is a dependency property.
public IEnumerable<double> Values { get; set; }
Property Value
- IEnumerable<Double>:
The the list of data values. The default value is null.
WhiskerAscent
Gets or sets a Unit indicating the ascent of the whisker endline. This is a dependency property.
public Unit WhiskerAscent { get; set; }
Property Value
Remarks
Ascent is height when in a horizontal graph, and width when in a vertical graph.
WhiskerStyle
Gets or sets the style of the whisker line. This is a dependency property.
public Style WhiskerStyle { get; set; }
Property Value
- Style:
The style of the whisker line. The default value is null.
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate
.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The class-specific AutomationPeer subclass to return.
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 SizeChangedEventArgs instance containing the event data. |
Refresh()
Updates the chart based on the current state.
public void Refresh()
Fields
AreOutliersVisibleProperty
Identifies the AreOutliersVisible dependency property. This field is read-only.
public static readonly DependencyProperty AreOutliersVisibleProperty
BoxStyleProperty
Identifies the BoxStyle dependency property. This field is read-only.
public static readonly DependencyProperty BoxStyleProperty
IqrMultiplierProperty
Identifies the IqrMultiplier dependency property. This field is read-only.
public static readonly DependencyProperty IqrMultiplierProperty
IsMeanVisibleProperty
Identifies the IsMeanVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsMeanVisibleProperty
IsMedianVisibleProperty
Identifies the IsMedianVisible dependency property. This field is read-only.
public static readonly DependencyProperty IsMedianVisibleProperty
LegendStringFormatProperty
Identifies the LegendStringFormat dependency property. This field is read-only.
public static readonly DependencyProperty LegendStringFormatProperty
MaximumProperty
Identifies the Maximum dependency property. This field is read-only.
public static readonly DependencyProperty MaximumProperty
MeanStyleProperty
Identifies the MeanStyle dependency property. This field is read-only.
public static readonly DependencyProperty MeanStyleProperty
MedianStyleProperty
Identifies the MedianStyle dependency property. This field is read-only.
public static readonly DependencyProperty MedianStyleProperty
MinimumProperty
Identifies the Minimum dependency property. This field is read-only.
public static readonly DependencyProperty MinimumProperty
OrientationProperty
Identifies the Orientation dependency property. This field is read-only.
public static readonly DependencyProperty OrientationProperty
OutlierStyleProperty
Identifies the OutlierStyle dependency property. This field is read-only.
public static readonly DependencyProperty OutlierStyleProperty
ValuesProperty
Identifies the Values dependency property. This field is read-only.
public static readonly DependencyProperty ValuesProperty
WhiskerAscentProperty
Identifies the WhiskerAscent dependency property. This field is read-only.
public static readonly DependencyProperty WhiskerAscentProperty
WhiskerStyleProperty
Identifies the WhiskerStyle dependency property. This field is read-only.
public static readonly DependencyProperty WhiskerStyleProperty
Inherited Members
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()