Pre loader

Bar chart bar width

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 noticed that the width of the bars is not consistent. This is the XAML:

<Abt:SciChartSurface Margin="2,117,0,0" SeriesSource="{Binding LoadChartSeries}" Grid.Column="1">
<Abt:SciChartSurface.ChartModifier>
<Abt:ModifierGroup>
<Abt:CursorModifier ShowTooltip="True" ShowAxisLabels="True" IsEnabled="True" />
</Abt:ModifierGroup>
</Abt:SciChartSurface.ChartModifier>

&lt;Abt:SciChartSurface.XAxis&gt;
    &lt;Abt:NumericAxis DrawMinorTicks=&quot;False&quot; DrawMinorGridLines=&quot;False&quot; AutoRange=&quot;Always&quot; AxisTitle=&quot;Load&quot; /&gt;
&lt;/Abt:SciChartSurface.XAxis&gt;
&lt;Abt:SciChartSurface.YAxis&gt;
    &lt;Abt:NumericAxis DrawMinorTicks=&quot;False&quot; DrawMinorGridLines=&quot;False&quot; AutoRange=&quot;Always&quot; AxisTitle=&quot;Occurances&quot;/&gt;
&lt;/Abt:SciChartSurface.YAxis&gt;

</Abt:SciChartSurface>

How do I get the bars to all be the same size?

  • You must to post comments
0
0

Hi there,

Thanks for getting in touch.

The thing is that FastColumnRenderableSeries Class expects datapoints to be evenly spaced. Therefore, to make things works the way you want you should set UseUniformWidth property as True.
In addition you may set DataPointWidth Property in order to control spacing between the columns.

Let us know if this helps or if we could be of more help.

All the best,
Olya

  • 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