rawgraphs / rawgraphs-app

A web interface to create custom vector-based visualizations on top of RAWGraphs core
https://rawgraphs.io
Apache License 2.0
8.66k stars 1.84k forks source link

mapping doesn't pass anymore the dateFormat #358

Closed mikima closed 2 years ago

mikima commented 2 years ago

Probably an issue of rawgraphs core.

We designed some charts (e.g. barchart) to be able to re-encode dates in the same way user inserted them. To make an example, if user inserted a MM/YYYY date, the same format would have been used for labels in the chart.

To achieve this, we relied on the property dateFormat contained in the mappingvariable.

{
    "bars": {
        "value": "date",
        "dataType": "date"
        "dateFormat": // <======= THIS
    },
    "size": {
        "value": "first",
        "config": {},
        "dataType": "number"
    },
    "color": {},
    "series": {}
}

but now the property is no more provided, don't know why

mikima commented 2 years ago

@bianchimro if you can have a look :)

mikima commented 2 years ago

nevermind - my error. I thought it was passed automatically, but it simply must be defined