A flat table is a simple way to show the initial data on a plain grid in your Vue project.
Play with the demo on a larger screen: save this link for later or watch the video review now.
<template>
<Pivot
componentFolder="https://cdn.flexmonster.com/"
height="370"
v-bind:report="report"
/>
</template>
<script>
import Pivot from "vue-flexmonster/vue3";
import "flexmonster/flexmonster.css";
export default {
name: "PivotComponent",
components: {
Pivot,
},
data() {
return {
report: {
dataSource: {
type: "csv",
filename: "https://cdn.flexmonster.com/data/data.csv",
},
options: {
grid: {
type: "flat",
},
},
slice: {
measures: [
{
uniqueName: "Country",
},
{
uniqueName: "Category",
},
{
uniqueName: "Color",
},
{
uniqueName: "Price",
},
{
uniqueName: "Discount",
},
],
},
formats: [
{
name: "",
thousandsSeparator: ",",
decimalSeparator: ".",
decimalPlaces: 2,
currencySymbol: "$",
},
],
},
};
},
};
</script>
In flat format, your data is shown row-by-row. This is a non-hierarchical grid view, where your data is represented the same way as the records from your data source.
Using the Field List, you can decide which columns to show and how to order them. You can also filter, sort, enable grand totals, and show them at the top or bottom row of the table.
Plus, with Ctrl + click (Command + click on macOS), you can use multi-column sorting to sort the records by multiple fields.
Toggle between the layouts: flat, classic (tabular), or compact to find the best way to interpret data.
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.