Pre loader

Tick line style

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

Answered
1
0

Have a good day!
Is there any method to make ticks go inside the chart? And how can I change length of tick line?

I’ve attached an image of desired result below.
Thanks in advance

Images
  • You must to post comments
Best Answer
1
0

Hi Egor,

It’s not possible to place the ticks inside the chart, but it is possible to change their size. See the XAML Styling example in our examples suite. Notice the AxisBase.MajorTickLineStyle and AxisBase.MinorTickLineStyle properties. Notice X2 Y2 is set. This is the ‘size’ of the line, since X1 Y1 is set to 0 0.

e.g. this style when applied to AxisBase.MajorTickLineStyle should do it

        <Style TargetType="Line">
            <Setter Property="Stroke" Value="GreenYellow"/>
            <Setter Property="StrokeThickness" Value="1"/>
            <Setter Property="X2" Value="8"/>
            <Setter Property="Y2" Value="8"/>
        </Style>

For further information about styling the axis, take a look at these articles:

Hope this helps!

Andrew

  • Egor
    Thank you for the response!
  • You must to post comments
Showing 1 result
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