This chart consists of a series of upright rectangles whose area is proportional to the frequency of the variable.
Example
import RequestApi from '@devoinc/applications-data-library/requests/RequestApi';
import dateRange from '@devoinc/applications-builder/utils/dateRange';
import histogramWidget from '@devoinc/applications-builder/widgets/histogram';
let query = `from demo.ecommerce.data
group every 1h by method, statusCode
select count() as count
`;
let request = new RequestApi({
query: query,
dates: dateRange.fromNow(1, 'day'),
});
let widget;
widget = histogramWidget('histogram-example');
widget.setRequests([request]);
widget.setKeys(['method', 'statusCode']);
widget.setValue(['count']);