SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.



I have a SciChart with as XAxis a DateTimeAxis and a dynamic/changing number of YAxes. Under the chart I have two DatePickers, the left one linked to the start of the DateTimeAxis, the right one linked to the end of the DateTimeAxis.

Now I would like to horizontally align these DatePickers right under the XAxis (so not just under SciChartSurface, see attached screenshot). How do I do this ? Note that the number of YAxes change, so I cannot just hardcode a margin.

Thanks in advance for any help,

  • You must to post comments
Best Answer

Hi Stefaan,

The SciChartSurface.AxisAreaLeft, AxisAreaRight properties might be able to help you here. These define the AxisArea controls which contain the axes on the left and right of the chart. For instance, you might want to listen to the UserControl Resize event and place DatePickers in a canvas just below the main SciChartSurface as the control resizes.

You should also see Real Time Ticking Stock Charts example, which does some hackery to make the Overview control the exact width of the SciChartSurface.XAxis.

Hope this helps!


  • srillaert
    Thanks Andrew, this helped ! The critical part of my code for this is now : DependencyPropertyDescriptor.FromProperty(FrameworkElement.ActualWidthProperty, typeof(FrameworkElement)).AddValueChanged(sciChartSurface.AxisAreaLeft, RecalculatePeriodSelectorMargin); Enjoy the evening, Stefaan
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.