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.
This tutorial will help you integrate Flexmonster with TypeScript.
npm install -g flexmonster-cli
Download the sample project with the flexmonster create command. You can choose a TypeScript or TypeScript + webpack project:
flexmonster create typescript webpack -r
This command downloads the TypeScript + webpack project from GitHub and launches it in the browser. To shut down the project from the console, press Ctrl + C (Control + C on macOS).
The sample project is located inside the flexmonster-typescript-webpack-project/ folder in your current working directory.
flexmonster create typescript -r
This command downloads the TypeScript project from GitHub and launches it in the browser. To shut down the project from the console, press Ctrl + C (Control + C on macOS).
The sample project is located inside the flexmonster-typescript-project/ folder in your current working directory.
If you change the contents of the main.ts file, recompile the main.js file using the following command:
npx tsc
Step 1. For integration with TypeScript, we will need Flexmonster type definitions, which can be found in the flexmonster npm package. Download the package by running the following command inside your project:
flexmonster add js-flexmonster
The command downloads flexmonster to the node_modules/ folder and adds it as an npm dependency to the package.json file.
Step 2. Add Flexmonster to the types array in the tsconfig.json file:
{
"compilerOptions": {
"types": ["flexmonster"],
// ...
},
// ...
}Step 3. Follow the steps from the Embed Flexmonster section to add Flexmonster to your project. Note that you need instructions from the Flexmonster CLI or npm tab.
Step 4. Run your project to see the result.
Here is an example of how Flexmonster integration with TypeScript can be done when the Vite bundler is used:
<!DOCTYPE html>
<html>
<body>
<!-- Create a div container to insert the component -->
<div id="pivotContainer"></div>
<!-- Include main.ts -->
<script type="module" src="/src/main.ts"></script>
</body>
</html>
import Flexmonster from "flexmonster";
import "flexmonster/flexmonster.min.css";
const pivot = new Flexmonster({
container: "pivotContainer",
toolbar: true
});
{
"compilerOptions": {
"types": ["flexmonster"],
// Other configs
},
// ...
}If you run into any issues during the integration, visit our troubleshooting page.
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.