JavascriptCharts dailystat is one day to soon

Issue #19 closed
Former user created an issue

When Using JavascriptCharts there is a shift of one day in the daily statistic:

I uploaded a screenshot:

(1) The Chart shows 671 Visitors on 4.12.2018. In the table below the 671 is on the 5.12.2018. (2) The peak in the Transfer (170MB) is in the table on the 4.12.2018 – In the Chart at 3.12.2018. (3) The 31.12.2018 is missing in the chart – but listed in the table (not on the picture).

In every month the last day in the dailystat is missing (empty) so I think there is something wrong with an array or similar

thank you

Comments (7)

  1. StoneSteps repo owner

    Is there any chance that webalizer_highcharts.js got mixed up between SSW v4.3.x and v5.0.0?

    In SSW v4.3.x daily usage chart was rendered as an x/y chart, where days were x-values and hits/files/etc were y-values. In SSW v5.0.0 it was changed to render them as a column series where only hits/files/etc values were supplied to Highcharts, which stumbled upon a peculiar implementation of column x-axis in Highcharts and resulted in a column shift by one value, as seen above. This shouldn't happen in SSW v4.3.0.

  2. StoneSteps repo owner

    Worked around an issue with Highcharts design that interprets axis min value as a minimum index into the axis series rather than a minimum value. In other words, day 1 was interpreted as the element after the first one in the days array, which shifted the X axis by one day.

    The fix is released only in v5.0.0.

  3. StoneSteps repo owner

    When Using JavascriptCharts there is a shift of one day in the daily statistic:

    I uploaded a screenshot:

    (1) The Chart shows 671 Visitors on 4.12.2018. In the table below the 671 is on the 5.12.2018. (2) The peak in the Transfer (170MB) is in the table on the 4.12.2018 – In the Chart at 3.12.2018. (3) The 31.12.2018 is missing in the chart – but listed in the table (not on the picture).

    In every month the last day in the dailystat is missing (empty) so I think there is something wrong with an array or similar

    thank you

  4. StoneSteps repo owner

    When Using JavascriptCharts there is a shift of one day in the daily statistic:

    I uploaded a screenshot:

    (1) The Chart shows 671 Visitors on 4.12.2018. In the table below the 671 is on the 5.12.2018. (2) The peak in the Transfer (170MB) is in the table on the 4.12.2018 – In the Chart at 3.12.2018. (3) The 31.12.2018 is missing in the chart – but listed in the table (not on the picture).

    In every month the last day in the dailystat is missing (empty) so I think there is something wrong with an array or similar

    thank you

  5. Log in to comment