Options are used to configure Flexmonster’s functionality and manage UI controls. For example, you can enable or disable filter controls, specify where to show totals, or select the component’s view type.
Options are defined in the OptionsObject and can be divided into three subgroups:
If no options are specified, Flexmonster will use the default options.
Visit our Examples page for live examples that demonstrate how to use different options.
You can set options in the following ways:
To set options in the report, configure the options property:
report: {
dataSource: {
filename: "https://cdn.flexmonster.com/data/data.csv"
},
options: {
grid: {
type: "flat",
showHeaders: false
},
chart: {
type: "pie",
},
viewType: "grid_charts"
}
}You can also set options for all reports in the GlobalObject.
You can set options using the following API calls:
setOptions(), use the refresh() API call to apply the changes:pivot.setOptions({ chart: { title: "Chart One" } });
pivot.refresh();
Live examplesetReport() API call. Example:let report = {
options: {
grid: {
type: "classic",
title: "Grid One"
}
},
slice: {
//...
},
// Other configs
}
pivot.setReport(report);
Live example
Use the Options Toolbar tab to manage grand totals, subtotals, and the table layout at runtime:

Most Flexmonster options have a default value. Flexmonster Pivot will use the default option values if an OptionsObject or global configurations are not specified.
options: {
viewType: "grid",
grid: {
type: "compact",
title: "",
showFilter: true,
showHeaders: true,
showTotals: "on",
showGrandTotals: "on",
grandTotalsPosition: "top",
showHierarchies: true,
showHierarchyCaptions: true,
drillThroughMaxRows: 1000,
showReportFiltersArea: true,
dragging: true,
showAutoCalculationBar: true,
autoSwitchToCompact: true,
disableExpandAndCollapse: false,
repeatAllLabels: false
},
chart: {
type: "column",
title: "",
showFilter: true,
multipleMeasures: false,
oneLevel: false,
autoRange: false,
reversedAxes: false,
showLegend: true,
showLegendButton: false,
showDataLabels: false,
showAllLabels: false,
showMeasures: true,
showOneMeasureSelection: true,
showWarning: true,
activeMeasure: {}
},
filter: {
weekOffset: 1,
dateFormat: "dd/MM/yyyy",
liveSearch: true,
filterByDateAndTime: false,
allowEmptyMembersFilter: false
},
configuratorActive: false,
configuratorButton: true,
showAggregations: true,
showCalculatedValuesButton: true,
grouping: false,
editing: false,
drillThrough: true,
showDrillThroughConfigurator: true,
sorting: "on",
defaultDateType: "date",
strictDataTypes: false,
datePattern: "dd/MM/yyyy",
dateTimePattern: "dd/MM/yyyy HH:mm:ss",
saveAllFormats: false,
showDefaultSlice: true,
useOlapFormatting: false,
showMemberProperties: false,
showEmptyData: true,
defaultHierarchySortName: "asc",
showOutdatedDataAlert: false,
showAggregationLabels: true,
showAllFieldsDrillThrough: false,
showFieldListSearch: false,
validateFormulas: true,
caseSensitiveMembers: false,
simplifyFieldListFolders: false,
validateReportFiles: true,
allowBrowsersCache: false,
showEmptyValues: false,
distinguishNullUndefinedEmpty: false,
useCaptionsInCalculatedValueEditor: false,
readOnly: false,
strictNumbersParsing: false
}Can't find your answer?
Visit the FAQ
Flexmonster Pivot Table & Charts is a JavaScript pivot table component for adding interactive reporting and data analysis to web applications. Users can summarize, filter, sort, and explore data in pivot tables and charts, drill into results, and export reports.
Flexmonster works in plain JavaScript and TypeScript projects. It also integrates with React, Next.js, Angular, Vue, Blazor, and other technologies. See all integration options.
Flexmonster supports JSON and CSV files, SQL databases, MongoDB, Elasticsearch, and Microsoft Analysis Services (SSAS). You can also connect other data sources through your own backend. See supported data sources.
Flexmonster offers licenses for internal corporate use, SaaS products, and OEM distribution. Pricing varies by license and plan. SaaS projects can also use the free SaaS Entry license during development. Learn more on the pricing page.
Yes. Flexmonster offers a 30-day free trial that lets you evaluate all its features. No credit card is required. The trial version has a watermark.
To get started with Flexmonster, follow our integration guide.