scichart


SciChart - Accurate placement of rotated axis labels


Following up on my question from yesterday:
SciChart - showing labels for all ticks
Thanks to the answer I was able to get the label density where I needed it. But I still have problems with label placement. As you can see in the screenshot, rotating the labels caused them to stick upwards into the graph. I need them below the axis. I've tried everything I could find in the API that I thought might help me:
a TranslateTransform - I tried moving both X and Y both ways. No
result.
VerticalAnchorPoint and HorizontalAnchorPoint - setting
VerticalAnchorPoint to Center actually moved the labels, but only by
3mm and in the wrong direction.
Horizontal/Vertical
Alignment/ContentAlignment - didn't do anything.
I've even tried
bloating the labels by appending a lot of spaces to the strings. A desperate attempt, I know.
Furthermore, the horizontal position of the labels is not correct either. In the screenshot you can see the first bump on the graph goes down on what looks like CF.02. But in reality it's set to CF.01. It would seem the labels are moved to the left of their corresponding tick. I need them to be displayed below the center of their respective tick, like the original solution.
In the SciChart's WPF Xaml Styling a Chart example there is a demonstration of how to rotate labels by changing the AxisBase.TickLabelStyle.
This uses RenderTransform to rotate labels by 15 degrees. However, if you use 90 degrees, the labels overlap the surface.
Changing the RenderTransform to LayoutTransform forces labels to be drawn in the correct place (below the axis).
You can read more about the difference between RenderTransform and LayoutTransform here.

Related Links

Custom Label Provider: Can't override Init() method
SciChart went Maximum Plaid after updating to latest version
Limit for zooming out in SciChart
Two scicharts bound to the same SeriesSource, not updating
SciChart - legend marker not displayed in custom chart legend
Crashes loading surface when deployed on non-development machine
Draw Text under some angle with specific font
SciChart - LineArrowAnnotation not disappearing when visibility is set to false
Show Tooltip on top of Axis and Scroll bar
SciChart - showing labels for all ticks
Swap scroll bar and X axis labels
Rendering chart to bitmap in memory from IRenderableSeriesViewModel
SciChart - show hierarchical list in axis legend
SciChart - Accurate placement of rotated axis labels
SciChart ITickProvder.Init method is never called

Categories

HOME
maven
twitter
variables
google-api-php-client
read-eval-print-loop
routes
at-command
amortized-analysis
twitter-bootstrap-4
icloud
windows-server
synchronization
reveal.js
modx-revolution
nstableview
task
flask-wtforms
dynamics-crm-online
workload-scheduler
telephony
saxon
serilog
aurigma
cx-freeze
autoconf
riot.js
cloudhub
kvc
restful-authentication
smb
wpfdatagrid
virtualdub
subdomains
google-cloud-nl
google-qpx-express-api
http-get
windows-dev-center
normal-distribution
mpmediaquery
plsql-psp
main
jquery-bootgrid
objectlistview
vapor
temporary-files
estimote
.net-4.6.2
btrace
scorm
jsch
atomicity
dotnetzip
yii2-extension
media-player
bind9
sts-springsourcetoolsuite
player
fuzzy-search
moveit
sdf
ipconfig
associative-array
execute
marching-cubes
fouc
embedded-code
0xdbe
tableau-online
nsight
unity5.2.3
jsapi
bigbluebutton
camanjs
device-manager
p4java
valuechangelistener
comexception
cloud-connect
mbr
geos
type-equivalence
delphi-6
kyotocabinet
mhtml
onsubmit
wse3.0
subscript
data-loss
mod-auth
coercion
django-tagging
invite
celltable
sudzc
blitz++
asp.net-mvc-areas
wise
nhibernate.search
backcolor
sustainable-pace
w3wp
commodore

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App