I’ve done some digging into this issue and it appears to be related to the baseline on the series in question. The baseline is taken into account when auto-calculating a range. Each series has a nil baseline by default.
The line series has a nil baseline interpreted to mean just that - there is no baseline to be included in the auto-calculated range.
A candlestick series seems to be having its nil baseline interpreted as 0, resulting in the default auto-calculated range including the value 0. Explicitly setting the baseline to nil still has no effect, so the current workarounds are either:
- Setting an explicit baseline on the candlestick series to match your minimum data point value. This will result in the baseline not extending the auto-calculated range.
- Manually setting the defaultRange property on your axis to be from your data’s min to max. This is used for the chart’s initial render and any range resets that occur, so the misinterpreted baseline will be ignored as no range will be auto-calculated.
This issue has been raised in our tracking system and we’ll be looking into a fix for an upcoming ShinobiChart release. Apologies for any inconvenience caused!