Pre loader

CursorModifier with only vertical line

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 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.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?

Version
5.1.0
  • You must to post comments
0
0

In case someone else wants to do this I have achieved what I needed by subclassing CursorModifier as

  public class VerticalCursorModifier : CursorModifier
{
    private Line _verticalLine;
    protected override void ShowCrosshairCursor(Point mousePoint, bool drawHorizontalLine, bool drawVerticalLine)
    {

        var modifierRect = ModifierSurface.GetBoundsRelativeTo(RootGrid);


        if (drawVerticalLine)
        {
            ShowCrosshairLine(ref _verticalLine, mousePoint.X, 0d, mousePoint.X, modifierRect.Height - 1);
        }
    }

    private void ShowCrosshairLine(ref Line line, double x1, double y1, double x2, double y2)
    {
        if (line == null)
        {
            line = new Line { Style = LineOverlayStyle, IsHitTestVisible = false };

            ModifierSurface.Children.Add(line);
        }

        line.X1 = x1;
        line.X2 = x2;
        line.Y1 = y1;
        line.Y2 = y2;
    }

    protected override void UpdateYAxesOverlay(Point mousePoint)
    {
       // base.UpdateYAxesOverlay(mousePoint);
    }
}
  • You must to post comments
0
0

Can I ask the same question here since no answer was given.

I want to display a CursorModifier so that I can show all the series values in one tooltip popup. I already have this working fine for cross-hair cursor using the CursorModifier.

The customer also wants the same tooltip option shown but with a single vertical line cursor, not the cross-hairs.

I cannot use RolloverModifier as this shows each series value in a separate popup.

CursorModifier with only vertical line would do the job.

Thanks

  • You must to post comments
0
0

Hi Flemming,

Thank you for the question.
If I understand you correct what you are looking for is a RolloverModifier Tooltips. Please check this example here: https://www.scichart.com/example/wpf-chart-example-using-rollovermodifier-tooltips/

I hope this helps.
Best regards,
Julia, SciChart team

  • Flemming Rosenbrandt
    Hi Thanks for the suggestion :) But what I want is just the cursor – no tooltip and no marker. The rollover modifier snaps to the data points – I do not want it to do that. /Flemming
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.