Skip to content

Data Format field doesn't seem to work with dates #920

Closed
@larxn

Description

@larxn

Description:

In the Vizualizer wizard, I try to render a bar chart with dates; but if I fill the "Data Format" field, the rendered date is always December 1969.

Here I haven't set any format, yet the rendered date is a bit strange:

image

Now, when I set a format, all dates become "December 1969":

image

How to reproduce:

  1. Create a new Bar Chart (using ChartJS as a library).
  2. Populate it with this data:
Year,Austria,Bulgaria
date,number,number
2003-02-21,1336060,100361
2004-04-02,1538156,366849
  1. Set MMM yy as the Vertical axis "Data Format" (the field located at Settings > Vertical Axis Settings > Formatting).

Expected behaviour:

Dates are formatted using using UCI syntax (i.e, "Feb 2003", "Apr 2004").

Current behaviour:

All dates are rendered as "Dec 1969".

Technical info

  • WordPress v5.9.3
  • Visualizer: Tables and Charts for WordPress v3.7.10
  • Visualizer: Tables and Charts Manager for WordPress AddOn v1.10.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis label could be used to identify issues that are caused by a defect in the product.releasedIndicate that an issue has been resolved and released in a particular version of the product.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions