Hello, I have a Heat Map that is grouped by a field of type TIME and another of type INTEGER, I also have the dataZoom
enabled with .set("dataZoom", "dragFilter")
, the problem is that when I select a range of values the filter is only applied to the field of type INTEGER and not to the one of type TIME. Am I doing something wrong? This is my code:
let provider = cf.provider("Elasticsearch");
let source = provider.source("ny_sales");
let metric0 = cf.Metric("count");
let metricColor = cf.Metric("count");
let group1 = cf.Attribute("sale_time")
.func("MONTH")
.limit(10)
.sort("desc", cf.Metric());
let group2 = cf.Attribute("company")
.limit(10)
.sort("desc", cf.Metric());
let myData = source.groupby(group1).colgroupby(group2)
.metrics(metric0);
let grid = cf.Grid()
.top(10)
.right(10)
.bottom(10)
.left(10);
let color = cf.Color()
.palette(["#a50026", "#d73027", "#d73027", "#f46d43", "#fdae61", "#fee090"])
.metric(metricColor);
let myChart = myData.graph("Heat Map")
.set("showValues", true)
.set("grid", grid)
.set("color", color)
.set("dataZoom", "dragFilter")
.element('hm-container')
.execute();