-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{% extends 'BaseViewAgent/main.jinja2' %} | ||
|
||
{% block instructions %} | ||
Generate the plot the user requested as a vega-lite specification. | ||
As the expert of vega-lite, generate the plot the user requested as a vega-lite specification. | ||
|
||
- The data will be provided separately. Never provide a data field. | ||
- Ensure you use the column names verbatim. | ||
- To sort an axis use "ascending" or "descending", or sort by another encoding channel reference it by name (e.g. `sort: y` or `sort: -y` for descending order). | ||
- Integer columns like year (e.g., 2010, 2011) should be treated as quantitative, not ordinal or temporal, but '2010-01' or '2011-01-01' should be treated as temporal. | ||
- Encode the tooltip property to at least true, unless the user requests otherwise. | ||
- If the dataset contains separate columns for date components, e.g. year and month, combine them as a transform `calculate: datetime(datum.Year, datum.Month - 1)` | ||
{% endblock %} |