SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Is there any method to paint FastMountainRenderableSeries and FastBandRenderableSeries with texture (e.g. bmp image)?
Here is image below for example.
As far as I know, there is. One of our customers (that we know about) has rendered a pattern fill using a VisualBrush inside FastMountainRenderableSeries.AreaBrush property.
I’m not sure exactly how they’ve done this, but I have seen the screenshots and it looks awfully similar to what you want. Are you working in the oil & gas industry by chance? Comment back here with your results and I’m happy to bounce ideas around until we can get a solution for you.
I just tried it. With the following code you can generate a textured/hatched fill
<!-- Declare RenderableSeries --> <s:SciChartSurface.RenderableSeries> <s:FastMountainRenderableSeries x:Name="mountainRenderSeries" SeriesColor="#AAFFC9A8" StrokeThickness="2"> <s:FastMountainRenderableSeries.AreaBrush> <VisualBrush TileMode="Tile" Viewport="0,0,10,10" ViewportUnits="Absolute" Viewbox="0,0,10,10" ViewboxUnits="Absolute"> <VisualBrush.Visual> <Canvas> <Rectangle Fill="Transparent" Width="10" Height="10" /> <Path Stroke="#AAFF8D42" Data="M 0 0 l 10 10" /> <Path Stroke="#AAFF8D42" Data="M 0 10 l 10 -10" /> </Canvas> </VisualBrush.Visual> </VisualBrush> </s:FastMountainRenderableSeries.AreaBrush> </s:FastMountainRenderableSeries> </s:SciChartSurface.RenderableSeries>
See the attached image for the result.
Please login first to submit.