SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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.