Pre loader

Single Column in ColumnRenderableSeriesViewModel Not Expanding to Full 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’m implementing a SciChart WPF (v8.6.30610) control that displays a single column within a SciChartSurface, which correctly stretches to fill the available width (≈800px). The chart is bound via MVVM using a ColumnRenderableSeriesViewModel and a UniformXyDataSeries(0, 1d) containing one data point. However, the column remains narrow (~50px) regardless of the chart’s actual width.

To investigate further, I modified the VisibleRange to (-1 ,1) and changed the data setup to UniformXyDataSeries(0, 20d). With this configuration, the column width increased slightly (to around 100px), but it still doesn’t scale proportionally to the SciChartSurface width. Adjusting properties like DataPointWidth or AutoRange has no effect on the column’s width.

My goal is for the single column to span the entire available chart width, effectively filling the space similar to a full-width bar.

Is DataPointWidth the correct property to control column width in this scenario?
Does the UniformXyDataSeries spacing or X-axis VisibleRange inherently restrict the rendered column size?
What is the recommended approach to achieve a full-width single column in SciChart?

Any guidance or clarification on the expected behavior would be greatly appreciated.

Attached is the working project (zip file) and also the image attached gives a clarity on the above ask.

Version
8.7.1.28499
Attachments
Images
  • You must to post comments
0
0

Hi Abilash,

Thank you for contacting us.
I am sorry for the delayed response.

SciChart allows switching between two modes for the Column Series DataPointWidth: Relative and Absolute.
By default, SciChart uses the Relative mode.

You can switch to DataPointWidthMode.Absolute mode to get the ability to specify the Column DataPointWidth in pixels
Please have a look at the “Specifying Column Width” section of the following documentation article for more info:
SciChart WPF Documentation – The Column Series Type | WPF Chart Documentation

Please let us know if this solution is suitable for your project.

Kind regards,
Lex S., MSEE
SciChart Technical Support Engineer

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.