Hello,
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);
Debug.WriteLine(val);
_dataSeries.Update(i, val);
}
}
sciChart.ZoomExtents();
}
If ARRAY_SIZE is 1; any value; after “click me” button pressed (may be needed to press few times to catch this)
If ARRAY_SIZE is 2; the values are [27, 55]
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”
Thanks!
-Egor
- Egor Baykov asked 6 years ago
-
Certainly very weird! I’m investigating this now and can reproduce it in our latest build.
- You must login to post comments
Please login first to submit.