SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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.