Skip to content

Commit

Permalink
docs: describe how to update layout when data changes (#7971)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Feb 22, 2022
1 parent acc4f6b commit aefbf4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/vega-lite-schema.json
Expand Up @@ -17346,7 +17346,7 @@
"description": "An object that specifies the format for parsing the data."
},
"name": {
"description": "Provide a placeholder name and bind data at runtime.",
"description": "Provide a placeholder name and bind data at runtime.\n\nNew data may change the layout but Vega does not always resize the chart. To update the layout when the data updates, set [autosize](https://vega.github.io/vega-lite/docs/size.html#autosize) or explicitly use [view.resize](https://vega.github.io/vega/docs/api/view/#view_resize).",
"type": "string"
}
},
Expand Down
2 changes: 2 additions & 0 deletions src/data.ts
Expand Up @@ -116,6 +116,8 @@ export interface InlineData extends DataBase {
export interface NamedData extends DataBase {
/**
* Provide a placeholder name and bind data at runtime.
*
* New data may change the layout but Vega does not always resize the chart. To update the layout when the data updates, set [autosize](https://vega.github.io/vega-lite/docs/size.html#autosize) or explicitly use [view.resize](https://vega.github.io/vega/docs/api/view/#view_resize).
*/
name: string;
}
Expand Down

0 comments on commit aefbf4d

Please sign in to comment.