Pre loader

Stacked Column Side By Side: X coordinates per column for custom annotation using MVVM

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

Hello,

I have 3 StackedColumnRenderableSeries using MVVM with StackedColumnRenderableSeriesViewModel.
I applied CustomAnnotationModifier, and because each x value of the 3 columns share same x value the X position of annotation is same (As in the attached image with the red annotations).
So i would like to be able to get the coordinates of each column for each series and to have annotation horizontally spread.

I have manged to get the series body width, and x coordinate using
var xCoordCalc = XAxis.GetCurrentCoordinateCalculator()
xCoordCalc.GetCoordinate((double)xValues[i]) //same outome for every series at same x point

i can possibly work out the aboslute positions, but i was wondering if there is a better way. Any idea?

Thanks

Version
v4.2.2.9777
Images
  • You must to post comments
0
0

Hi Raed,

Sorry for a delayed answer. Unfortunately, there is no public API to get coordinates of side columns. I’m going to log this issue and we will consider extending the API in future.

Best regards,
Yuriy

  • Rich Wardwell
    This would be helpful for me as well (on iOS).
  • 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