Flexmonster Software License Agreement (“Agreement”) has been revised and is effective as of October 15, 2026.
The following modifications were made:
Downloading, installing, and/or continuing to use Flexmonster Software after October 15, 2026, constitutes Licensee’s acceptance of the terms and conditions of the modified version of Agreement. If Licensee does not agree to any of these terms and conditions, they must cease using Flexmonster Software and must not download, install, use, access, or continue to access Flexmonster Software. By continuing to use Flexmonster Software or renewing the license or maintenance after the effective date of these modifications to Agreement, Licensee accepts and agrees to be bound by the terms and conditions of the modified Agreement.
Flexmonster selects field types automatically. For example, check out the following data:
let jsonData = [
{
"Country": "Canada",
"Price": 174,
}
];
By default, the types of the "Country" and "Price" fields will be set automatically to "string" and "number", respectively.
You can manually set types for specific fields in one of the following ways:
The mapping defines how fields are treated and presented within the component. See how to specify the type for a field.
To set data types in the JSON data, add the first object with the necessary configurations to a JSON array. Check out the full list of supported configurations.
See an example:
let jsonData = [
{
"Color": {type: "string"},
"Country": {
type: "string",
hierarchy: "Geography"
},
"State": {
type: "string",
hierarchy: "Geography",
parent: "Country"
},
"City": {
type: "string",
hierarchy: "Geography",
parent: "State"
},
"Price": {type: "number"},
"Quantity": {type: "number"}
},
{
"Color" : "green",
"Country" : "Canada",
"State" : "Ontario",
"City" : "Toronto",
"Price" : 174,
"Quantity" : 22
},
// Other data
];
const pivot = new Flexmonster({
container: "pivotContainer",
toolbar: true,
report: {
dataSource: {
data: jsonData
},
// Slice configs
}
});
If you use a JSON array of arrays, do not specify fields in the first subarray:
let jsonData = [
{
"Color": {
type: "string"
},
"Country": {
type: "string",
hierarchy: "Geography",
},
"State": {
type: "string",
hierarchy: "Geography",
parent: "Country"
},
"City": {
type: "string",
hierarchy: "Geography",
parent: "State"
},
"Price": {
type: "number"
},
"Quantity": {
type: "number"
}
},
["green", "Canada", "Ontario", "Toronto", 174, 22],
// Other data
];
const pivot = new Flexmonster({
container: "pivotContainer",
report: {
dataSource: {
data: jsonData
},
// Slice configs
}
});
Check out the list of properties for configuring a field through the first object in JSON data:
| Property/Type | Description |
|---|---|
| type String | The data type. Check out the full list of available data types. |
| hierarchy String | optional The hierarchy's name. When configuring hierarchies, specify this property to mark the field as a level of a hierarchy or as a member property of a hierarchy (in this case, the type must be set to "property"). See how to configure multilevel hierarchies. |
| parent String | optional The unique name of the parent level. This property is necessary if the field is a level of a hierarchy and has a parent level. See how to configure multilevel hierarchies. |
| isMeasure Boolean | optional Indicates whether a field can be selected only for measures (true) or only for rows, columns, or report filters (false). The isMeasure property works only when the strictDataTypes option is set to true
Live example.Default value: false. |
Can't find your answer here?
Visit the FAQ page
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 three licensing models: a Single Corporate License for internal use by one company (from $799/year), a SaaS License for embedding Flexmonster into a multi-tenant platform (from $2,499/year), and an OEM License for vendors distributing Flexmonster inside a product installed at other businesses (from $1,499/year for a 3-license bundle). Every license allows an unlimited number of developers and covers development, staging, and production environments at no extra charge.
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.