Pre loader

Is a y-axis in the middle of the chart possible?

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
0
0

I am currently evaluating and trying to find out if it is possible to draw the y-axis in the middle of the chart. Is this possible?

Like the alignment for left and right an alignment like “middle”. The sample only shows left and right alignment.
If it is not build in. Would it be possible to code a custom position? (But not by changing the source of SciChart but rather extending it).

I would need it for 2 scenarios:
A “running” chart like the FiFo Chart of the samples with the y-axis in the middle.
Like so (the pipe being the y-axis). First line the initial state. Second line after 3 ticks:
-1-2-3-4-5-|-6-7-8-9-
-4-5-6-7-8-|-9-10-11-12-

And a y-axis fixed chart like: y-axis at position 0 and the axis extending to the left with negative values and extending right with positive values (but at any possible position not just 0).

-(-5)-(-4)-(-3)-(-2)-(-1)-|-1-2-3-4-5-

I would have the same question for the x-Axis but I haven’t looked into x-axis configuration myself yet.

  • You must to post comments
Best Answer
1
1

Yes, it is!

From http://support.scichart.com/index.php?/Knowledgebase/Article/View/17250/29/creating-a-chart-with-center-axis

New to SciChart v3.2, you can place an axis in the centre of a chart.
To do this we have added a special property for the axis:
AxisBase.IsCenterAxis.

enter image description here

Does this help?

Best regards,
Andrew

  • Uwe Hafner
    That looks great. It should solve one of my requirements. Thanks . When I knew what I had to look for I even found it in the samples. Its the oscilloscope sample.
  • Andrew Burnett-Thompson
    Glad to be of help! :)
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.