SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & 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 exception
The argument “barTimeFrame”, value=0, must be greater than 0.

Whats is mean?


  • You must to post comments

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,

  • 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

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,

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.