Issue #692 new

DateAxisRender/CanvasAxisTickRenderer duplicate date label bug

Matthew Lucas
created an issue

The data is a set of dates and a number. I render a bar graph for the data set below. Each date only appears once in the data, but the graph duplicates 11-04.

If I enable highlighting, the values still show up correctly (hover over the end, it says 2012-11-30, but it is aligned with 2012-11-29.

Only everything from 2012-11-05 and on are shifted from the label.


Comments (5)

  1. sectio_aurea

    I had this same problem appear out of the blue recently, where axis labels were duplicated but mouseover/hover values on data points were accurate.

    A possible workaround, which worked for my scenario, is to change the date values to e.g. "2012-11-30 12:00PM", with a time of day specified. This returned axis labels to the correct display for me - no duplicates.

  2. mike_young_

    I had the same issue come up for me, but I was already supplying dates in the javascript format with time included. If there is no workaround for this, it will mean I'll have to completely rewrite my charts using another plugin.

    -Sad Panda

  3. mike_young_

    unrelated, but this variable, if used is .... well, wrong:

    var daysInMonths = [31,28,31,30,31,30,31,30,31,30,31,30]; should be: var daysInMonths = [31,28,31,30,31,30,31,31,30,31,30,31];

  4. Log in to comment