IRenderableSeries
Defines the interface to all RenderableSeries within Ultrachart. A RenderableSeries is a Line series, or Scatter series or Candlestick series and provides the visual element in pair of BaseRenderableSeries and IDataSeries
Implements: IRenderableSeriesBase, IDrawable, IXmlSerializable
Properties
public bool AntiAliasing { get; set; }
value = iRenderableSeries.AntiAliasing
iRenderableSeries.AntiAliasing = value
Gets or sets whether this series uses AntiAliasing when drawn
public IRenderPassData CurrentRenderPassData { get; set; }
value = iRenderableSeries.CurrentRenderPassData
iRenderableSeries.CurrentRenderPassData = value
Gets or sets the RenderPassData instance used for this render pass
public object DataContext { get; set; }
value = iRenderableSeries.DataContext
iRenderableSeries.DataContext = value
Gets or sets the DataContext to apply to the IRenderableSeries
public IDataSeries DataSeries { get; set; }
value = iRenderableSeries.DataSeries
iRenderableSeries.DataSeries = value
Gets or sets the DataSeries associated with this series
public bool DisplaysDataAsXy { get; }
value = iRenderableSeries.DisplaysDataAsXy
If true, the data is displayed as XY, e.g. like a Scatter plot, not a line (time) series
public bool IsSelected { get; set; }
value = iRenderableSeries.IsSelected
iRenderableSeries.IsSelected = value
Gets or sets value, indicates whether this IRenderableSeries is selected
public bool IsVisible { get; set; }
value = iRenderableSeries.IsVisible
iRenderableSeries.IsVisible = value
Gets or sets whether the series is visible when drawn
public IPaletteProvider PaletteProvider { get; set; }
value = iRenderableSeries.PaletteProvider
iRenderableSeries.PaletteProvider = value
Gets or Sets an optional IPaletteProvider instance, which may be used to override specific data-point colors during rendering. For more details, see the IPaletteProvider documentation
public object PointSeriesArg { get; }
value = iRenderableSeries.PointSeriesArg
ToPointSeries argument.
public ResamplingMode ResamplingMode { get; set; }
value = iRenderableSeries.ResamplingMode
iRenderableSeries.ResamplingMode = value
Gets or sets the ResamplingMode used when drawing this series
public FrameworkElement RolloverMarker { get; }
value = iRenderableSeries.RolloverMarker
Gets a cached Framework Element which is used as a Rollover Marker. This is generated from a ControlTemplate in xaml via the RolloverMarkerTemplateProperty DependencyProperty
public Style SelectedSeriesStyle { get; set; }
value = iRenderableSeries.SelectedSeriesStyle
iRenderableSeries.SelectedSeriesStyle = value
Gets or sets style for selected series
public Color SeriesColor { get; set; }
value = iRenderableSeries.SeriesColor
iRenderableSeries.SeriesColor = value
Gets or sets the SeriesColor.
public int StrokeThickness { get; set; }
value = iRenderableSeries.StrokeThickness
iRenderableSeries.StrokeThickness = value
Gets or sets the StrokeThickness in pixels for this series
public Style Style { get; set; }
value = iRenderableSeries.Style
iRenderableSeries.Style = value
Gets or sets the style to apply to the IRenderableSeries
public IAxis XAxis { get; set; }
value = iRenderableSeries.XAxis
iRenderableSeries.XAxis = value
Gets or sets the XAxis that this IRenderableSeries is associated with
public string XAxisId { get; set; }
value = iRenderableSeries.XAxisId
iRenderableSeries.XAxisId = value
Gets or sets the ID of the X-Axis which this renderable series is measured against
public IAxis YAxis { get; set; }
value = iRenderableSeries.YAxis
iRenderableSeries.YAxis = value
Gets or sets the YAxis that this IRenderableSeries is associated with
public string YAxisId { get; set; }
value = iRenderableSeries.YAxisId
iRenderableSeries.YAxisId = value
Gets or sets the ID of the Y-Axis which this renderable series is measured against
Methods
public IndexRange GetExtendedXRange(IndexRange IndexRange)
result = iRenderableSeries.GetExtendedXRange(IndexRange)
Returns the data range of the assosiated IDataSeries on X direction which is enough to render VisibleRange=xRange correctly.
public SeriesInfo GetSeriesInfo(HitTestInfo hitTestInfo)
result = iRenderableSeries.GetSeriesInfo(hitTestInfo)
Converts a HitTestInfo hit-test result into a SeriesInfo viewmodel for use in the UltrachartLegend, RolloverModifier, CursorModifier.
- hitTestInfo
- The hit-test result to convert
public IRange GetXRange()
result = iRenderableSeries.GetXRange()
Returns the data range of the assosiated IDataSeries on X direction
public IRange GetYRange(IRange xRange)
result = iRenderableSeries.GetYRange(xRange)
Returns the data range of the assosiated IDataSeries on Y direction The X-Axis Range currently in view
public IRange GetYRange(IRange xRange, bool getPositiveRange)
result = iRenderableSeries.GetYRange(xRange, getPositiveRange)
Returns the data range of the assosiated IDataSeries on Y direction The X-Axis Range currently in viewIndicates whether to return positive YRange only
public HitTestInfo HitTest(Point rawPoint, double hitTestRadius, bool interpolate)
result = iRenderableSeries.HitTest(rawPoint, hitTestRadius, interpolate)
Performs a hit-test at the specific mouse point (X,Y coordinate on the parent UltrachartSurface), returning a HitTestInfo struct with the results
- rawPoint
- The mouse point on the parent UltrachartSurface
- hitTestRadius
- The radius in pixels to determine whether a mouse is over a data-point
- interpolate
- If true, use interpolation to perform a hit-test between data-points, or on the area if a FastMountainRenderableSeries, FastColumnRenderableSeries or FastCandlestickRenderableSeries
Returns: A HitTestInfo struct with the results
public HitTestInfo HitTest(Point rawPoint, bool interpolate)
result = iRenderableSeries.HitTest(rawPoint, interpolate)
Performs a hit-test at the specific mouse point (X,Y coordinate on the parent UltrachartSurface), returning a HitTestInfo struct with the results
- rawPoint
- The mouse point on the parent UltrachartSurface
- interpolate
- If true, use interpolation to perform a hit-test between data-points, or on the area if a FastMountainRenderableSeries, FastColumnRenderableSeries or FastCandlestickRenderableSeries
Returns: A HitTestInfo struct with the results
public HitTestInfo VerticalSliceHitTest(Point rawPoint, bool interpolate)
result = iRenderableSeries.VerticalSliceHitTest(rawPoint, interpolate)
Performs a hit-test at the specific mouse point with zero hit-test radius. Method considers only X values and returns a HitTestInfo struct with the closest X value
- rawPoint
- The mouse point on the parent UltrachartSurface
- interpolate
- If true, use interpolation to perform a hit-test between data-points, or on the area if a , or
Returns: A HitTestInfo struct with the results
Events
public event EventHandler SelectionChanged
iRenderableSeries.SelectionChanged += handler
Event raised whenever IsSelected property changed