Pre loader

Multiple rows of labels on XAxis with different majorDelta

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

Hi,

I’m trying to achieve the looks of DateTimeCategory XAxis as shown on uploaded screenshot.

Formatting a single row of tick labels is not a hard task (setTextFormatting). The problem arises when there are 2 rows with same frequency (days of the week and dates) and third row with lower frequency (years).

I tried using new line character in text formatting property to break the line for days and dates and it didn’t work. I also tried having two axes bound to the same data series, each one having different formatting and majorDelta, but it seems that they don’t stack up (only first one added is shown).

Any ideas?

Version
1.2.4
Images
  • You must to post comments
0
0

Mykola, I believe your fix broke some other functionalities related to axis labels. If range is being reconfigured on the fly (by changing the underlying dataset or by panning and zooming) labels get broken down into multiple rows. It can be clearly seen in the screenshot of column chart demo I attached – I was just zooming the chart in and out couple of times.

It feels like maximum allowed label width is not computed properly when AutoTicks are turned on, but I might be wrong.

Images
  • Igor Peric
    It is clearly visible in almost all of the examples, but I encourage you to take a look at the “Adding series with millions of points” demo – tick labels are broken down to one character per line even after a single button tap.
  • You must to post comments
0
0

Hi, Igor Peric

I’ve found what was the problem and fixed it.
In new version
http://www.scichart.com/Downloads/iOS/v1.2/SciChart_iOS_v1.2.4.1295_SDK.zip

Best Regards, Mykola

Images
  • You must to post comments
0
0

Hi, Igor Peric

I’ve fixed the problem with text formatting and it should work with new line character too.
The fix you can find in new build here http://www.scichart.com/Downloads/iOS/v1.2/SciChart_iOS_v1.2.4.1294_SDK.zip

Best Regards, Mykola

  • Igor Peric
    Thanks, Mykola, that’s really great! How about placing the year information spanning multiple day/month labels? Do you have any suggestion how to do that or are you perhaps aware that it’s currently not possible?
  • You must to post comments
Showing 3 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