Need to edit the min-max of your boxplot? Or make other code customizations that aren’t available in the default boxplot visualization?
You can use this vega-lite starting point of a boxplot to use within Omni’s vega editor. Note you must update the field
parameters to reference the fields in your own query and the extent
parameter could be modified from “min-max” to other values like 1.5, which is the standard box plot whisker length (1.5 times the interquartile range).
here's a starting point for building this in the vega editor:
{
"mark": {
"type": "boxplot",
"extent": "min-max"
},
"encoding": {
"x": {"field": "main__order_items\\.status", "type": "ordinal"},
"color": {"field": "main__order_items\\.created_at_date\\[month\\]", "type": "nominal", "legend": null},
"y": {
"field": "main__order_items\\.sale_price_sum",
"type": "quantitative",
"scale": {"zero": false}
}
}
}
Any further customization options could be found in the vega-lite library or your favorite AI helper could give you a few pointers