Pre loader

Box Plot Chart - LabelFormating the x Axis problem

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

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

  • You must to post comments
0
0

Re-Post

Please excuse the abrupt nature of this post as I don’t want to go into a load of detail for it post an empty one again. I’ll post more info if it’s necessary and there isn’t an obvious answer.

Basically the problem is that my BoxPlot xAxis isn’t displaying how I think it should when using a LabelFormater i.e. there are multiple labels of the same name for a single data entry. Admittedly I’m resetting the axis strings each time the data set changes but I’d still only expect 1 label.

Please see attached image.

Thanks

Images
  • Andrew Burnett-Thompson
    My guess is, you are casting double to ints to get the index to the string array, but when a double value 2.5 is passed from axis, you return the label at index 2. Do you want to put some debug.writeline logging in your LabelProvider to see the actual data value in + string label out? You can return null or string.empty as a label to ignore it if you want. Another thing you can do is set MajorDelta = 1 and AutoTicks = false on your axis. This will ensure that data-values are always spaced by 1.
  • Stuart McCullough
    It's nice to work one out on my own for once :-) The axis setting advice is duly noted though - it never hurts to learn something new :-)
  • Andrew Burnett-Thompson
    It has its drawbacks. If you set AutoTicks = false then specify MajorDelta = 1, and MinorDelta = 0.25 say, then when you zoom in and out, the MajorDelta will always be 1 and labels will start to get crowded. If this is what you want e.g. you're not planning to zoom, then that is fine. However, if you want finer grained control over the exact output of the Axis, take a look at the Axis.TickProvider feature, which allows you to completely override the algorithm to generate tick coordinates (used by labels and gridlines)
  • 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