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.
Play with the demo on a larger screen: save this link for later or watch the video review now.
import { Component, viewChild } from "@angular/core";
import { FlexmonsterPivot, FlexmonsterPivotModule } from "ngx-flexmonster";
@Component({
selector: "pivot-table-demo",
imports: [FlexmonsterPivotModule],
templateUrl: "./pivot-table-demo.component.html"
})
export class PivotTableDemo {
readonly pivot = viewChild.required<flexmonsterpivot>("pivot");
public report: Object = {
dataSource: {
type: "csv",
filename: "https://cdn.flexmonster.com/data/happiness.csv",
mapping: {
"Year": {
type: "string"
}
}
},
slice: {
rows: [
{
uniqueName: "Region"
},
{
uniqueName: "Country or region"
}
],
columns: [
{
uniqueName: "[Measures]"
},
{
uniqueName: "Year"
}
],
measures: [
{
uniqueName: "Score",
aggregation: "median",
grandTotalCaption: "Median Happiness"
}
]
},
conditions: [
{
formula: "AND(#value > 7.3, #value < 10)",
format: {
backgroundColor: "#f0c63e",
color: "#000000",
fontFamily: "Arial",
fontSize: "12px"
}
},
{
formula: "AND(#value > 0, #value < 4.5)",
format: {
backgroundColor: "#f29c8d",
color: "#000000",
fontFamily: "Arial",
fontSize: "12px"
}
}
],
formats: [
{
name: "",
decimalPlaces: 2
}
]
};
customizeToolbar(toolbar: Flexmonster.Toolbar) {
toolbar.showShareReportTab = true;
}
onOpenLocalCSV() {
this.pivot().flexmonster.connectTo({
type: "csv",
browseForFile: true
});
}
onLoadRemoteCSV() {
let filename = prompt("Open remote CSV", "https://cdn.flexmonster.com/data/data.csv");
if (filename != null) {
this.pivot().flexmonster.connectTo({
type: "csv",
filename: filename
});
}
}
onOpenLocalJSON() {
this.pivot().flexmonster.connectTo({
type: "json",
browseForFile: true
});
}
onLoadRemoteJSON() {
let filename = prompt("Open remote JSON", "https://cdn.flexmonster.com/data/data.json");
if (filename != null) {
this.pivot().flexmonster.connectTo({
type: "json",
filename: filename
});
}
}
customizeCellFunction(cell: Flexmonster.CellBuilder, data: Flexmonster.CellData) {
if (data.isGrandTotalColumn) {
if ((data.value as number) < 5 && (data.value as number) >= 0) {
cell.text = (data.value as number).toPrecision(3) + " ☹️";
} else if ((data.value as number) >= 5 && (data.value as number) < 7) {
cell.text = (data.value as number).toPrecision(3) + " 🙂";
} else if ((data.value as number) >= 7 && (data.value as number) < 10) {
cell.text = (data.value as number).toPrecision(3) + " 😃";
}
}
}
}
<button (click)="onOpenLocalCSV()">Open local CSV</button>
<button (click)="onLoadRemoteCSV()">Load remote CSV</button>
<button (click)="onOpenLocalJSON()">Open local JSON</button>
<button (click)="onLoadRemoteJSON()">Load remote JSON</button>
<fm-pivot #pivot
[height]="600"
[toolbar]="true"
[report]="report"
[customizeCell]="customizeCellFunction"
(beforetoolbarcreated)="customizeToolbar($event)"
[shareReportConnection]="{url: 'https://olap.flexmonster.com:9500'}"
/>
You can connect Flexmonster Pivot to your local, remote, or server-side generated JSON and CSV files and create a new data visualization with Angular in minutes.
Use the mapping to clarify how your Angular reporting tool should interpret and display the fields from the file.
We have made Flexmonster super flexible and optimized to work with a lot of data extremely fast on the client side. If your data files are more than 100 MB, we suggest using one of our data source solutions — Flexmonster Data Server. It's easy to configure this server-side tool for data aggregation, which will kick-start your web reporting with Angular.
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.