Skip to content

add date and numbers extension formatting seetings for rendered and exported vega charts #60

Open
@stenzengel

Description

@stenzengel

Is it possible to set timeFormatLocale and formatLocale to non-default values for the preview and when exporting images?

This is supported by Vega and Vega-Lite:

E.g I would like to see a preview and export an SVG image in the German locale:

  1. formatLocale
{
  "decimal": ",",
  "thousands": ".",
  "grouping": [3],
  "currency": ["", "\u00a0"]
}
  1. timeFormatLocale
{
  "dateTime": "%A, der %e. %B %Y, %X",
  "date": "%d.%m.%Y",
  "time": "%H:%M:%S",
  "periods": ["AM", "PM"],
  "days": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
  "shortDays": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
  "months": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
  "shortMonths": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
}

My personal favorite solution would be to be able to define this in the VS Code Settings (User, Folder or Workspace) and not have to do this every time I open a preview.

Any help greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions