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

1
0

I am wondering if you can place a image registered (x0,y0) upper Left and (x1,y1) lower right in the background and have the bmp, jpg, etc… move with the scaling and scrolling of the chart.

Version
current version
  • You must to post comments
0
0

Hi Kent,

You can place an image in the background of the chart by using an Annotation. Please see our guide here on creating a CustomAnnotation (X1 Y1 X2 Y2).

My suggestion is to template the BoxAnnotation as in the article above to have an Image at its root.

Next, set X0=XAxis.VisibleRange.Min, X1=XAxis.VisibleRange.Max,
Y0=YAxis.VisibleRange.Min, Y1=YAxis.VisibleRange.Max

This will ensure the image is stretched across the entire viewport of the chart. If you zoom or pan the image will move with the chart.

Is that what you are looking for? Or not quite the right behaviour? If you want the image to stay fixed always in the background of the chart, check out Annotation.CoordinateMode = CoordinateMode.Relative. You can read about CoordinateMode here.

Let me know if this helps!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.