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
java
sendgrid
hook
debugging
isabelle
view
iterator
react-router
leon
jsrender
v8
jxls
swagger-ui
contact
gz
task
zebra-printers
lombok
zapier
pass-by-reference
php-openssl
restful-authentication
h2db
smb
windows-error-reporting
social-media
windows-server-2000
quote
delicious-api
madlib
yadcf
vsts-build-task
windows-dev-center
mapbox-gl
hexo
wixsharp
io-redirection
hot-module-replacement
hockeyapp
gesture
angularjs-factory
cookiecutter-django
graphenedb
ibpy
midl
sencha-touch-2.3
appcompat
rails-routing
hendrix
blogengine.net
domain-model
mplayer
pillow
gcsfuse
color-profile
word-vba-mac
dstu2-fhir
mongocsharpdriver
clang-static-analyzer
lttng
apachebench
ios4
spim
cyclomatic-complexity
ideamart
myo
mmc
oberon
web-controls
csquery
qcodo
issuu
eol
valuechangelistener
tidy
listings
ora-00911
qt-faststart
sqlperformance
type-equivalence
distutils
quickdialog
dice
subscript
adk
stage
hamachi
horizontal-accordion
html-input
visitor-statistic
sudzc
zend-translate
libs
zend-decorators
w3wp
msdev

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App