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!

0
0

Hi,
How can i have axis labels and annotations to be shown on the chart all the time, even if there is no datapoint on the chart?

  • You must to post comments
0
0

Annotations and Axis labels are shown on the chart if there are no data-points on the chart.

Please see our Annotations are Easy example which shows this.

enter image description here

Best regards,
Andrew

  • Aysan Afrand
    hmm.. i’m wondering why they won’t show for my chart then. Can MvvM affect that?
  • Andrew
    As a first guess, ensure the VisibleRange of axis is large enough to show your annotations. Annotations are not included in AutoRange.As a second guess, I would use WPF Snoop or just plain Visual Studio debugger to check if SciChartSurface.Annotations has any values in it after your chart has loaded. If not, then it could be a binding error.Finally, I would be looking for any errors in the Visual Studio output window. SciChart reports exceptions and errors when SciChartSurface.DebugWhyDoesntSciChartRender = true, and there is an exception handling callback SciChartSurface.OnRenderException as well you can listen to .
  • Aysan Afrand
    ah.. thank you. I had y axis range as null because of no data. Set a default for that and it looks fine now.
  • Andrew
    Awesome! :)
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.