Pre loader

Column charts with gaps in data

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’m trying to plot a vertical bar (column) chart where each bar represents a chemical element. Rather than the bars being “side by side”, using (say) an incrementing X value (1,2,3…), I was hoping I could use the chemical elements’ masses, resulting in a chart where the bars are “spread out” along the X-axis in a non-uniform way.

Here are some example X-values from a series I’m trying to plot – while the first few are fairly uniform, note the large gap before the last two:-

201.970627
202.972336
203.972
204.972
205.974457
206.975876
207.976639
235.043915
238.050781

If I try and render these using a FastColumnRenderableSeries, it starts off okay but goes a bit crazy with the last couple of bars! As I understand it, this series type doesn’t support gaps in the data, so I’m assuming this is to blame for the corrupt display.

Can you suggest any alternative approaches to what I’m trying to achieve? I’ve tried the FastImpulseRenderableSeries, which gives results very close to what I’m looking for. Unfortunately the inability to make the impulse lines wider is a showstopper for the client.

  • You must to post comments
0
0

Hi Andy,

Please, try setting UniformWidth to “True”, it configures the series to draw columns using the width of the thinnest column. Also, please, take a look at this post, you might find there some useful info.

Please, let us know if it helps!

Best regards,
Yuriy

  • 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