Reputation: 1
I used deneb in power bi to create a Gantt chart with vega JSON.
The first screen is the first launch screen.
When I run the Gantt chart, I want to position the scroll to where the current date is directly visible.
Is this possible?
English may not be smooth because you're using a translator. We apologize in advance.
I've tried to find a way to adjust the scroll or change the position with Vega JSON, but it doesn't seem to support that functionality.
Upvotes: -1
Views: 111
Reputation: 2062
This sample opens to a specified point on a line: Open the Chart in the Vega Editor
Here's the key bit of code:
{"mark": "line"},
{
"params": [
{
"name": "label",
"value": [
{
"x": {
"year": 2007,
"month": 10
}
}
],
"select": {
"type": "point",
"encodings": ["x"],
"nearest": true,
"on": "mouseover"
}
}
],
Upvotes: 1