One of the causes of Flexmonster's slow performance in React is the babel-loader package, which can be preinstalled in webpack-based React applications. By default, babel-loader transpiles all files located in the node_modules/ folder, including Flexmonster files.
This issue can be fixed by manually configuring babel-loader, which requires running the npm run eject command. Note that this command’s effect is irreversible, so we recommend learning more about npm run eject before running it.
To improve Flexmonster's performance, complete the following steps:
Step 1. Run the npm run eject command in the console.
Step 2. Open the webpack.config.js file and exclude Flexmonster from babel-loader:
// Process any JS outside of the app with Babel
// Unlike the application JS, we only compile the standard ES features
{
test: /\.(js|mjs)$/,
exclude: [
/node_modules[\\/]flexmonster/,
/@babel(?:\/|\\{1,2})runtime/
],
loader: require.resolve('babel-loader'),
…
}If you completed the instructions above but the performance is still slow, you can try passing data to the component in a different way.
For example, data can be aggregated on a server and passed to Flexmonster in a ready-to-show format. This will reduce the load on the browser and improve performance. This approach is implemented in Flexmonster Data Server — our tool for server-side data processing, so you are welcome to use it.
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.