Pre loader

Paint mountain series with texture

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

Hello everybody!
Is there any method to paint FastMountainRenderableSeries and FastBandRenderableSeries with texture (e.g. bmp image)?
Here is image below for example.

Images
  • You must to post comments
0
0

Hi Peter,

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.

Best regards,
Andrew

  • Andrew Burnett-Thompson
    Confirmed. Customer set FastMountainRenderableSeries.AreaBrush to a VisualBrush and it worked. Band series won't support brush fills however, but Column, Mountain types do
  • You must to post comments
0
0

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.

Images
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies