devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
29 lines (28 loc) • 1.05 kB
JavaScript
/**
* DevExpress HTML/JS Reporting (chart\internal\_requests.js)
* Version: 25.1.3
* Build date: Jun 26, 2025
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
import { sendRequest } from '@devexpress/analytics-core/analytics-internal';
import { PrepareRequestArgs } from '@devexpress/analytics-core/analytics-utils';
import { HandlerUri } from '../_handlerUri';
export class ChartRequests {
static getChartImage(uri, chartLayout, width, height) {
return sendRequest(uri, 'chart', PrepareRequestArgs({
width: width,
height: height,
Chart: JSON.stringify({
'ChartXmlSerializer': {
'@version': '16.2.0.0',
Chart: chartLayout
}
})
}));
}
static fieldListCallback(request) {
const requestJson = PrepareRequestArgs(request);
return sendRequest(HandlerUri(), 'fieldList', requestJson);
}
}