This tutorial will help you integrate Flexmonster Pivot with any module bundler.
When using a bundler, you need to properly bundle Flexmonster's assets (e.g., styles, fonts, and icons), which includes configuring the following:
.woff, .woff2, .eot, .ttf, .otf, .svg files). Ensure that files with the fonts are present in the node_modules/flexmonster/theme/assets/ folder.For example, when working with webpack, you need to specify the following rules:
const path = require('path');
module.exports = {
mode: 'development',
// ...
module: {
rules: [
{
test: /\.css$/,
use: [
'style-loader',
'css-loader'
]
},
{
test: /\.(woff|woff2|eot|ttf|otf|svg)$/,
type: "asset/inline"
}
]
}
};
Note that the configs will differ depending on the bundler you are using.
If you encounter any errors, see troubleshooting.
Our sample webpack project shows how webpack must be configured to properly bundle Flexmonster’s assets. Complete the following steps to get the project:
Step 1. To get our sample webpack project, download it as ZIP or clone it with the following commands:
git clone https://github.com/flexmonster/pivot-webpack
cd pivot-webpack
Step 2. Install the npm dependencies described in package.json:
npm install
Step 3. Run the sample project from the console:
npm start
The application can be shut down manually with Ctrl + C (Control + C on macOS).
The bundler rules are specified in the webpack.config.js file. Check them out.
This section provides solutions to the errors you might encounter while completing this tutorial. If your error is not listed here, visit our troubleshooting page.
The error message indicates a bug in the Vite transpiler, which fails while attempting to transpile case statements within Flexmonster's code. Read more on Vite GitHub.
To fix the error, use an older version of rollup:
Step 1. Add the following to your project’s package.json file:
"overrides": {
"rollup": "4.29.2"
}Step 2. Run npm install to apply the changes.
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.