jQuery UI Widgets Forums Chart gap at beginning and end of series

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 8 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • gap at beginning and end of series #87052

    OracleLurker
    Participant

    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.

    gap at beginning and end of series #87079

    Dimitar
    Participant

    Hello OracleLurker,

    Please try setting the xAxis valuesOnTicks property to true.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    gap at beginning and end of series #87288

    OracleLurker
    Participant

    Hi Dimitar.

    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.

    gap at beginning and end of series #87311

    Dimitar
    Participant

    Hi OracleLurker,

    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.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.