Hi community,
I try to work with vega-lite-charts, unfortunatley with no success.
Here is my json:
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A simple bar chart",
"data": {"url": {"%context%":"true",
"index":"umsatz01"}
},
"mark": "bar",
"encoding": {
"x": {"field": "Monat", "type": "nominal", "axis": {"labelAngle": 0}},
"y": {"field": "Umsatz", "type": "quantitative"}
}
}
and the response
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 9,
"max_score": 1,
"hits": [
{
"_index": "umsatz02",
"_id": "ANyAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 1200,
"Monat": "Jan"
}
},
{
"_index": "umsatz02",
"_id": "AdyAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 1000,
"Monat": "Feb"
}
},
{
"_index": "umsatz02",
"_id": "AtyAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 988,
"Monat": "Mrz"
}
},
{
"_index": "umsatz02",
"_id": "A9yAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 2100,
"Monat": "Apr"
}
},
{
"_index": "umsatz02",
"_id": "BNyAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 556,
"Monat": "Mai"
}
},
{
"_index": "umsatz02",
"_id": "BdyAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 889,
"Monat": "Jun"
}
},
{
"_index": "umsatz02",
"_id": "BtyAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 567,
"Monat": "Jul"
}
},
{
"_index": "umsatz02",
"_id": "B9yAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 324,
"Monat": "Aug"
}
},
{
"_index": "umsatz02",
"_id": "CNyAk4YBiCKQLGD3oToR",
"_score": 1,
"_source": {
"Umsatz": 1258,
"Monat": "Sep"
}
}
]
}
}
Although the data seems to be correct I get the error-message:
-
Infinite extent for field "Umsatz_start": [Infinity, -Infinity]
-
Infinite extent for field "Umsatz_end": [Infinity, -Infinity
Somebody here, who can explain what is wrong with my chart?
Thanks in advance, Joerg