I have this code in Deneb
{
"data": {"name": "dataset"},
"layer": [
{
"mark": "bar",
"encoding": {
"y": {
"field": "datum_s",
"type": "ordinal",
"axis": {"title": "Date"}
},
"yOffset": {"field": "Typ"},
"color": {"field": "Typ"},
"x": {
"field": "start_n",
"type": "quantitative",
"axis": {"title": "Hour"}
},
"x2": {"field": "end_n"}
}
},
{
"mark": "rule",
"encoding": {
"x": {
"datum": 8,
"type": "quantitative"
},
"stroke": {"value": "darkgray"}
}
},
{
"mark": "rule",
"encoding": {
"x": {
"datum": 17,
"type": "quantitative"
},
"stroke": {"value": "darkgray"}
}
}
]
}
sample data are:
what I want is that axe X start not from 0 but form number 7. because from hours 0 - 7 is no data and it makes huge white space in graph.