Tutorial

Voronoi

A voronoi is a type of widget that represents one variable in several dimensions.

Voronoi

Example

import RequestApi from '@devoinc/applications-data-library/requests/RequestApi';
import dateRange from '@devoinc/applications-builder/utils/dateRange';
import voronoiWidget from '@devoinc/applications-builder/widgets/voronoi';

let query = `from siem.logtrust.web.activity
  group every 30m by userAgent, locale, result
  select count() as count`;

let request = new RequestApi({
  query: query,
  dates: dateRange.fromNow(1, 'day'),
});

widget = voronoiWidget('voronoi-example');
widget.setRequests([request]);
widget.setSearch(request.getSearch());
widget.setValToShow('count');
widget.setKeyToShow(['userAgent', 'locale', 'result']);
widget.setValueFormat(['toBytes']);

See API