Pre loader

BarTimeFrame

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

0
0

Hi,

I have exception
The argument “barTimeFrame”, value=0, must be greater than 0.

Whats is mean?

Thanks,
Arthur

  • You must to post comments
0
0

Hello Arthur,

CategoryDateTimeAxis.BarTimeFrame is a property which allows you to specify the time for 1-bar (or one point) on the chart in seconds, e.g. CategoryDateTimeAxis.BarTimeFrame=900 means each point on the chart represents 15 minutes.

This is used for financial charting to assist the range and zoom calculations in the X-axis.

Are you binding to this property? If so what value are you setting? Please set -1 for “Automatic” (timeframe calculated by axis) or an explicit value greater than zero.

Many thanks,
Andrew

  • Arthur Romanov
    Hi, Andrew I'm not using BarTimeFrame and exception generated sometimes. Can I NOT use BarTimeFrame? If not, I'll try to set it to greater than 0. Thanks, Arthur
  • You must to post comments
0
0

Hi Arthur,

This exception can occur during SciChartSurface rendering. So there are quick tips for you:

  • if you don’t use CategoryDateTimeAxis(default), ensure that you changes it before the surface is rendered
  • if surface’s DataSet is Null or empty when the rendering pass starts, this exception will be thrown as well

Please, try out this and give us any feedback. If doesn’t help, could I ask you to post small example which reproduces this issue?

Best regards,
Yuriy

  • You must to post comments
Showing 2 results
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