Pre loader

Set a background image for a heatmap

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

0
0

Hey guys,

i’m evaluating some wpf chart frameworks for our company.

Our goal is to get a heatmap with a custom image as background (e.g. a sports ground). Is there any possibility to achive this goal with scichart?

thx
Daniel

  • You must to post comments
0
0

Hi there,

Interesting requirement you have there! Yes I think you can do this. Try using a Custom Annotation. The Create Annotations Dynamically example shows how to insert an image inside a CustomAnnotation type.

  • You will need to set CoordinateMode = CoordinateMode.Relative, AnnotationCanvas = AnnotationCanvas.BelowChart and X1, Y1 = 0.
  • You will also need to listen to SizeChanged events of the parent SciChartSurface and resize the CustomAnnotation (width, height) to fit.
  • Ensure your CustomAnnotation.Width matches the SciChartSurface.ModifierSurface.Width and CustomAnnotation.Height matches the SciChartSurface.ModifierSurface.Height.

Thanks!

Andrew

  • schulz.d
    Thanks for your fast reply. I will have a try and let you know how it works.
  • schulz.d
    Hey Andrew, thanks for the help. the suggested way works well and is easy to implement. I still have another question on the topic. Is there any way to get the zero values in the heatmap as transparent cells. Thx
  • You must to post comments
Showing 1 result
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