Pre loader

Drag VerticalLineAnnotation caused NullReferenceException

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

Answered
0
0

I am considering applying server-side licensing for my javerScript application.

In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support-dev.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)

However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)

I wonder if there is a sample code implemented in C++ for server-side licensing.

Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?

Images
  • You must to post comments
Good Answer
0
0

I figured out what is needed.

Because I am using multiple YAxes, there is no default YAxis (null). For some reason, the VerticalLineAnnotation needs to know its Y coordinate even if it is a “stretch” line.

So the fix was just adding
YAxisId=”IdOfArbitraryYAxis”
to the XAML block for the VerticalLineAnnotation.

It would’ve been nice if the software was smart enough to figure that it didn’t need to know Y coordinates because it is a vertical line that stretched all the way. Oh well, at least it’s an easy workaround.

  • slake
    Hi there, yes, that is correct, in multiple YAxis scenarios, VerticalLineAnnotation does need to know the YAxis ID. This is because YAxes may be configured in a way so that they do not take up all the vertical space. Apologies our software didn’t warn you more clearly, but as you say the workaround is very simple. Thanks for posting the answer!
  • 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