Knowledgebase: RenderableSeries API
SeriesColor and StrokeThickness
Posted by Admin - on 21 March 2014 11:19 AM

StrokeThickness and SeriesColor

Many of the RenderableSeries share the following properties:
  • BaseRenderableSeries.StrokeThickness
  • BaseRenderableSeries.SeriesColor

Series only accept a Color (not Brush) for the main series color. The reason for this is we are not rendering WPF UIElements, but using an alternative bitmap rendering engine, which only supports solid colors for lines (Gradients are supported for fills).

How Different Series Types interpret SeriesColor

A mapping of what SeriesColor means for individual *RenderableSeries types follows:
Series SeriesColor obeyed?
FastLineRenderableSeries Yes, Line color
FastMountainRenderableSeries Yes, Line color above mountain fill
FastCandlestickRenderableSeries No, use UpWickColor, DownWickColor instead
FastOhlcRenderableSeries No, use UpWickColor, DownWickColor instead
FastColumnRenderableSeries Yes, outline of Column color
FastScatterRenderableSeries No, ignored (see PointMarker API section)
FastBandRenderableSeries Yes, see SeriesColor as well as SeriesColor1 which define the two band line colors
FastErrorBarsRenderableSeries Yes, error bar color
FastBoxPlotRenderableSeries Yes, box plot outline
FastBubbleRenderableSeries No, ignored
FastHeatmapRenderableSeries No, Ignored
StackedColumnRenderableSeries Yes, outline of column color
StackedMountainRenderableSeries Yes, outline of column color

Invisible Series with SeriesColor.Transparent

Setting the SeriesColor to Transparent will mean that line rendering is skipped for this series. This is useful, say if you want to toggle the line on/off in a Line Series with Point-Markers. It will still be visible to Hit-Test, AutoRange and to the RolloverModifier though. If you want to hide a series completely, use RenderableSeries.IsVisible.

(1 vote(s))
Helpful
Not helpful

CONTACT US

Not sure where to start? Contact us, we are happy to help!


CONTACT US

SciChart Ltd, 16 Beaufort Court, Admirals Way, Docklands, London, E14 9XL. Email: Legal Company Number: 07430048, VAT Number: 101957725