The layered pie chart is a pie chart with concentric layers to show successive levels of data.
Example
import RequestApi from '@devoinc/applications-data-library/requests/RequestApi';
import dateRange from '@devoinc/applications-builder/utils/dateRange';
import pieLayeredWidget from '@devoinc/applications-builder/widgets/pieLayered';
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 = pieLayeredWidget('pie-layered-example');
widget.setRequests([request]);
widget.setKeys(['method', 'statusCode']);
widget.setValue('count');