Pre loader

What would cause DataSeries.MinXSpacing to be 0

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


I am trying to plot a column plot. However, my column with is always 0. In debugging, I find that dataPointWidth = Math.Abs(xCoordinateCalculator.GetCoordinate(DataSeries.MinXSpacing) – xCoordinateCalculator.GetCoordinate(0)); is called. However, the DataSeries.MinXSpacing is 0. My XValues are just incremental numbers as 0, 1, 2, 3.. 90. What would cause DataSeries.MinXSpacing to be 0? It should be 1.

  • You must to post comments

Hi Ning,

Thanks for your question.

Please take a look at our “Column Chart” example:

It’s a simple example where XValues are incremental numbers from 0 – 19. The example shows no issues with column width. Please compare your code against the example – hope this will help you to figure out the reason for such behaviour.

In another case, please provide us with a small sample project reproducing it for investigation.

Thanks in advance.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.