Pre loader

Constant sized Column bars in MVVM

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

Hi,

I’m trying to add two column series with a different number of data points with the same width per column. There is a suggested solution here:

https://www.scichart.com/questions/wpf/constant-sized-column-bars

but I’m doing it from ViewModel.

So, if I understand it right, I can override GetColumnWidth() in FastColumnRenderableSeries in the new class ConstantColumnRenderableSeries, but how can I add ConstantColumnRenderableSeriesViewModel (overriding ColumnRenderableSeriesViewModel), so that once I add an instance of this newly created class ConstantColumnRenderableSeriesViewModel into RenderableSeries it will add ConstantColumnRenderableSeries to chart and render it?

Thanks in advance!

Version
5.4
  • You must to post comments
0
0

Hi Alexander,

That forum question is 5 years old, since then we’ve added a property called UseUniformWidth.

Find out more here:
https://www.scichart.com/documentation/v5.x/SciChart.Charting~SciChart.Charting.Model.ChartSeries.ColumnRenderableSeriesViewModel_members.html

Best regards,
Andrew

  • 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