Pre loader

Synchronize YAxis Size with Vertically Aligned Charts

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 trying to keep stacked charts the same with, however when the Y-Axis values contain a decimal point the grid background width scales automatically therefore causing the edge of stacked charts to be mis aligned. I have attached an image to demonstrate. How can I work around this.

Images
  • You must to post comments
Best Answer
2
0

Hi there,

Two ways you can do this – you can set an explicit Width, or MaxWidth on the Y-Axes, or alternatively you can use the attached property SciChartGroup.VerticalChartGroup which will lock the sizes of Y-Axes to the same width.

Example usage:

<!-- A first vertically aligned chart -->
<s:SciChartSurface x:Name="chart0" s:SciChartGroup.VerticalChartGroup="myGroup">
   <!-- RenderableSeries, DataSet, XAxis omitted for brevity -->
</s:SciChartSurface>

<!-- A second vertically aligned chart -->
<s:SciChartSurface x:Name="chart1" s:SciChartGroup.VerticalChartGroup="myGroup">
   <!-- RenderableSeries, DataSet, XAxis omitted for brevity -->
</s:SciChartSurface>
  • 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