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?
- Igor Peric asked 7 years ago
- You must login to post comments
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
- Mykola Hrybeniuk answered 7 years ago
-
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 login to post comments
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.
- Igor Peric answered 7 years ago
-
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 login to post comments
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
- Mykola Hrybeniuk answered 7 years ago
- last edited 7 years ago
- You must login to post comments
Please login first to submit.