Pre loader

Can annotations be placed outside of the chart area?

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

I’d like to add some descriptive text next to the chart. When the legend is displayed to the left of the chart there is a lot of blank space below the legend so that would be the perfect place to place my text. Can annotations do this or are they limited to the chart area itself? If so, is there some other way to achieve what I want (eg. draw directly on the graphics pane)?

  • You must to post comments
0
0

Ok, thanks. I’m using WinForms currently while I evaluate SciChart but being able to composite is yet another reason to ultimately move to WPF.

The more I use SciChart the more impressed I am!

  • You must to post comments
0
0

Hi David,

Annotations can only be placed on the SciChartSurface central area – e.g. the area between the axis. Some special annotation types, such as the AxisMarkerAnnotation can be placed on the axis.

If you want to draw some descriptive text over the entire chart, then why not use a WPF grid? Simply placing the chart inside a grid, you can overlay any element thanks to WPF’s compositing.

<Grid>
    <s:SciChartSurface/> ...
    <TextBlock Text="Hello World!" HorizontalAlignment="Left" VerticalAlignment="Right" Margin="10,10,10,10"/>
</Grid>

Also, annotations if you do place them on the centre area can be positioned using Relative or Absolute coordinates. See Annotation.CoordinateMode = Relative which is used to place watermarks and info text at a specific location on the chart.

Best regards,
Andrew

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