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

0
0

Hi,
We are trying to add an image annotation to a View Model. We have closely followed Tutorial 07b – Adding Annotations with MVVM, as well as the Custom Annotations – Adding a WaterMark to a Chart example, but we are not having luck getting anything to show up.
We would like to have something that allows us to pass in the pathway to an image, and then lets us display it on our chart. Depending on different circumstances, we would want to display different images. Is there an example of this type of image annotation somewhere?
Thank you!

Version
6.5.0.13720
  • You must to post comments
0
0

Hi Daisha,

Thanks for your inquiry.
Please take a look at our custom Watermark example:
https://support.scichart.com/index.php?/Knowledgebase/Article/View/17209/33/

Is this what you are looking for?

  • Daisha Utley
    Sorry, I may not have explained the problem very clearly. We are completely working on a ViewModel, so the surface is a ViewModel too. Because of this, the surface does not contain members for the following calls in the code example. “Opacity = 0.25, Content = new CustomAnnotationViewModel() { Logo = “SciChartLogo_Dark.png”, Text = “SciChart” }, ContentTemplate = (DataTemplate) chart.Resources[“AnnotationTemplate”]”. I don’t currently have a way to pass the image location in. Is there possibly a working example of this same type of example happening in a ViewModel? Thank you.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.