I’m using an area series group and notice that the area drawn starts and ends connected to the x-axis rather than at the appropriate point on the value axis for the first and last points on the x axis. Visually this gives the appearance that the first and last values on the chart are zero even though they are not. This effect is more noticeable with the fewer data points that I have in my time series (x-axis). Is this the default behavior and is there any way to change it? or (more likely) could it be something I am doing?
Also – using a line series also displays the same gap at the end of the series between the last point and the value axis.
When I switch the series type to ‘column’ no gap is evident and it displays fine.
Thanks for the reply. Setting valueOnTicks = true works for the first point – it is now aligned with the start of the x-axis. The gap between the last point and the value axis on the chart remains however.
Is what you describe similar to what can be seen in the demo Line Series? In it, there is a gap, because the data is up to December 24, 2014 and the max of the x-axis is January 1, 2015. This can be “fixed”changed by setting xAxis.baseUnit to a smaller unit, e.g. ‘day’ and changing xAxis.maxValue.