Hi @eduardo
Yes, the filter is reappearing in the Interaction Manager even if it is deleted. I guess is not a static filter but not quite sure. Here is an example:
/* Configuration code for this widget */
let provider = cf.provider("ES Local");
let source = provider.source('women_in_congress');
//<start filter222> Autogenerated Filter
let filter222= cf.Filter('@timestamp')
.label('@timestamp')
.value('Last 3 years')
.isRelative()
//<end filter222>
// Define metrics
let metric0 = cf.Metric("members", "sum");
// Define attributes to group by
let group1 = cf.Attribute("chamber")
.limit(10)
.sort("desc", cf.Metric("members", "sum"));
// Add metrics and groups to data source
let myData = source.groupby(group1)
.metrics(metric0);
// --- Define chart options and static filters ---
// Define Grid
let grid = cf.Grid()
.top(10)
.right(15)
.bottom(35)
.left(65);
// Define Color Palette
let color = cf.Color()
.palette(["#0095b7", "#a0b774", "#f4c658",
"#fe8b3e", "#cf2f23", "#756c56",
"#007896", "#47a694", "#f9a94b",
"#ff6b30", "#e94d29", "#005b76"]);
//<start exec filter222> Autogenerated Filter
myData.filter(filter222);
//<end exec filter222>
let myChart = myData.graph("Bars")
.set("grid", grid)
.set("color", color)
.set("dataZoom", false)
.execute();
I guess is not static cause of the autogenerated
in the comment, but again not sure.