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

0
0

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.

Version
5.4.1.12137
  • You must to post comments
0
0

Hi Ning,

Thanks for your question.

Please take a look at our “Column Chart” example:
https://www.scichart.com/example/wpf-chart-example-column-chart/

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies