Hello,
we upgraded the version from 3.4.652 to 3.5.687, and problems with the Y-axis appeared on the charts. When moving the overviewChart sliders or using the scroll wheel to change the visibleRange, the Y-axis fails to set the min and max values correctly, resulting in the default values of 0 and 10 being displayed (Error: Argument max must be a real number (not infinite, not NAN)). We didn’t change anything in the code. I checked the data we provide, and all variables are of type Number, there are no other random things.
I’ll just include the axis parameters we use.
const yAxis = new NumericAxis(wasmContext, {
autoRange: EAutoRange.Always,
growBy: new NumberRange(0.1, 0.1),
drawMajorBands: false,
drawMajorTickLines: false,
drawMinorGridLines: false,
drawMinorTickLines: false,
labelStyle: {
fontSize: 11,
fontFamily: 'Open Sans, sans-serif',
padding: new Thickness(0, 3, 0, 0),
color: this.theme.lineChartColor,
alignment: ELabelAlignment.Right,
},
maxAutoTicks: 7,
axisAlignment: EAxisAlignment.Right,
labelProvider: this.getDynamicValueLabelProvider(),
isVisible: false
});
const yAxisVolume = new NumericAxis(wasmContext, {
id: USER_CHART.Y_AXIS_VOLUME_ID,
growBy: new NumberRange(0, 4),
isVisible: false,
autoRange: EAutoRange.Always,
allowFastMath: true,
});
https://ibb.co/tL5HgCz – in the screenshot, the incorrect axes are on the left side – sometimes only the volume axis (invisible), and in another case, both axes. The correct charts are on the right side.
Best regards,
Kamil
- Kamil Macura asked 3 months ago
-
Hello, I wasn’t able to reproduce the issue. We’ll need more input from your side. The best way to report a bug is to send us a working sample where we can reproduce it. Then, we can easily define the issue and promptly take further measures. Our demo website (https://demo.scichart.com) allows you to export a selected example to a sandbox (CodeSandbox button at the top right corner) and edit/share it online.
-
Hi, here you should see the error: https://codesandbox.io/p/sandbox/chart-range-problem-p27l22?file=%2Fsrc%2FApp.tsx%3A75%2C29
-
Yes, I see. We are investigating it.
-
There was indeed a bug with Y range when using resampled data with a category x axis. This is fixed in Dev and should be released on Monday
- You must login to post comments
This issue is fixed in v3.5.706 just released. Full changelog is at https://www.scichart.com/changelog/scichart-js/
Regards
David
- David Burleigh answered 2 months ago
- You must login to post comments
Please login first to submit.