SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components



ColumnChart: Autorange is not working if XyDataSeries contains 1 or 2 items.

The SDK example -> 2D Charts -> Column Chart with little modifications (the complete code is attached):

    private void OnClick(object sender, RoutedEventArgs e)
        using (this.sciChart.SuspendUpdates())
            for (int i = 0; i < ARRAY_SIZE; i++)
                var val = _rnd.Next(-100, 100);
                _dataSeries.Update(i, val);

If ARRAY_SIZE is 1; any value; after “click me” button pressed (may be needed to press few times to catch this)
enter image description here

If ARRAY_SIZE is 2; the values are [27, 55]

enter image description here

If ARRAY_SIZE is 3 or more – columns are displayed OK for any values.

If I use

AutoRange="Never" VisibleRange="-100, 100"

this example works OK.

Question: please let me know how to make the ColumnChart working properly for one or two columns and AutoRange=”Always”



  • Andrew Burnett-Thompson
    Certainly very weird! I’m investigating this now and can reproduce it in our latest build.
  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.