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 Stackoverflow.com where you can earn rep for your questions!

1
0

Hi, I have a couple inquiries:

  1. After I load all my data to the chart, how can I force to re-render the chart? The problem I’m having is that after I load my data the labels on both axis are not rendered correctly or rendered at all until I interact with the chart or a data point is updated/added (look at the pictures attached).

  2. I have ZoomPanModifier enabled on my chart but I would like to be able to pan beyond the last data point in my dataset, is that possible? In case I’m not clear, when I’m dragging the chart left and right I cannot move beyond the first or last data point in the chart.

Thanks, Diego

Images
  • You must to post comments
0
0

Hi dguerrero,

(1): Simply call SciChartSurface.InvalidateElement(). If you cannot do that (because you are using MVVM) then you can create an instance of DefaultViewportManager in your ViewModel, bind to it in the view like this.

<SciChartSurface ViewportManager="{Binding ViewportManagerInstanceInViewModel}"/>

Then in the view you can call InvalidateParentSurface on the viewport manager to refresh it. There is a Topic on Zooming Including Annotations which demonstrates how to use the ViewportManager.

(2) Yes, this is possible, you need to set ZoomPanModifier.ClipModeX property to ClipAtMin or None.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.