Skip to content
Discussion options

You must be logged in to vote

The latter example code you've posted already works, e.g. for superstore data you can use a config such as:

{
    "plugin": "Y Bar",
    "group_by": ["Order Date"],
    "filter": [
        ["Order Date", ">=", "2016-12-01"],
        ["Order Date", "<=", "2017-12-01"]
    ],
    "columns": ["Sales"]
}

You can also rewrite your filter as a boolean expressions column and then use this filter predicate in combination with other features, like split_by:

{
    "plugin": "Y Bar",
    "group_by": ["Order Date"],
    "split_by": ["Filtered Date"],
    "expressions": {
        "Filtered Date": "\"Order Date\" > date(2014, 12, 1) and \"Order Date\" < date(2015, 12, 1) \n"
    },
    "columns": ["Sales

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Turdot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants