SeriesValueModifier
A custom ChartModifierBase which places an AxisMarkerAnnotation on the YAxis for each BaseRenderableSeries in the chart, showing the current BaseRenderableSeries latest Y-value. E.g. for each series, place one axis-marker with the latest Y-value of the series
Inherits: ChartModifierBase
Constructors
public SeriesValueModifier()
seriesValueModifier = SeriesValueModifier()
Initializes a new instance of the SeriesValueModifier class.
Properties
protected IDictionary<IRenderableSeries, IAnnotation> AnnotationsBySeries { get; }
value = seriesValueModifier.AnnotationsBySeries
Stores AxisMarkerAnnotation instances keyed by IRenderableSeries
public Style AxisMarkerStyle { get; set; }
value = seriesValueModifier.AxisMarkerStyle
seriesValueModifier.AxisMarkerStyle = value
Gets or sets a Style to apply to Axis Markers. See remarks for implementation
public string YAxisId { get; set; }
value = seriesValueModifier.YAxisId
seriesValueModifier.YAxisId = value
Defines which YAxis to bind the SeriesValueModifier to, matching by string Id
Methods
public static bool GetIsLastPointInViewport(DependencyObject obj)
result = SeriesValueModifier.GetIsLastPointInViewport(obj)
Gets the value of the IsLastPointInViewportProperty
public static bool GetIsRenderableSeriesInViewport(DependencyObject obj)
result = SeriesValueModifier.GetIsRenderableSeriesInViewport(obj)
Gets the value of the IsRenderableSeriesInViewportProperty
public static bool GetIsSeriesValueModifierEnabled(UIElement element)
result = SeriesValueModifier.GetIsSeriesValueModifierEnabled(element)
Gets the IsSeriesValueModifierEnabled property on the element. When Set to True on a RenderableSeries, this series will be included in the SeriesValueModifier processing, else it will be excluded
- element
- The element.
Returns: if set to true this series will be included in the SeriesValueModifier processing, else it will be excluded.
public static Color GetSeriesMarkerColor(DependencyObject obj)
result = SeriesValueModifier.GetSeriesMarkerColor(obj)
Gets the value of the SeriesMarkerColorProperty
public override void OnAttached()
seriesValueModifier.OnAttached()
Called when the Chart Modifier is attached to the Chart Surface
public override void OnDetached()
seriesValueModifier.OnDetached()
Called immediately before the Chart Modifier is detached from the Chart Surface
protected override void OnIsEnabledChanged()
seriesValueModifier.OnIsEnabledChanged()
Called when the IsEnabled property changes on this SeriesValueModifier instance
public override void OnParentSurfaceRendered(UltrachartRenderedMessage e)
seriesValueModifier.OnParentSurfaceRendered(e)
Called when the parent UltrachartSurface is rendered
- e
- The UltrachartRenderedMessage which contains the event arg data
public static void SetIsLastPointInViewport(DependencyObject obj, bool value)
SeriesValueModifier.SetIsLastPointInViewport(obj, value)
Sets the value of the IsLastPointInViewportProperty
public static void SetIsRenderableSeriesInViewport(DependencyObject obj, bool value)
SeriesValueModifier.SetIsRenderableSeriesInViewport(obj, value)
Gets the value of the IsRenderableSeriesInViewportProperty
public static void SetIsSeriesValueModifierEnabled(UIElement element, bool value)
SeriesValueModifier.SetIsSeriesValueModifierEnabled(element, value)
Sets the IsSeriesValueModifierEnabled property on the element. When Set to True on a RenderableSeries, this series will be included in the SeriesValueModifier processing, else it will be excluded
- element
- The element.
- value
- if set to true this series will be included in the SeriesValueModifier processing, else it will be excluded.
public static void SetSeriesMarkerColor(DependencyObject obj, Color value)
SeriesValueModifier.SetSeriesMarkerColor(obj, value)
Sets the value of the SeriesMarkerColorProperty
Fields
public static readonly DependencyProperty AxisMarkerStyleProperty
value = SeriesValueModifier.AxisMarkerStyleProperty
The axis marker style DependencyProperty.
public static readonly DependencyProperty IsLastPointInViewportProperty
value = SeriesValueModifier.IsLastPointInViewportProperty
Defines the IsLastPointInViewportProperty attached property. It is used to change the opacity of AxisMarker associated with a renderable series when the last point it goes outside the viewport.
public static readonly DependencyProperty IsRenderableSeriesInViewportProperty
value = SeriesValueModifier.IsRenderableSeriesInViewportProperty
Defines the IsRenderableSeriesInViewport attached property. It is used to hide the AxisMarker associated with a renderable series when it goes outside the viewport.
public static readonly DependencyProperty IsSeriesValueModifierEnabledProperty
value = SeriesValueModifier.IsSeriesValueModifierEnabledProperty
The IsSeriesValueModifier DependencyProperty. When Set to True on a RenderableSeries, this series will be included in the SeriesValueModifier processing, else it will be excluded
public static readonly DependencyProperty SeriesMarkerColorProperty
value = SeriesValueModifier.SeriesMarkerColorProperty
Defines the LastPointColor attached property. Holds the color of the last visible bar in a viewport for a RenderableSeries
public static readonly DependencyProperty YAxisIdProperty
value = SeriesValueModifier.YAxisIdProperty
Defines the YAxisId DependencyProperty