Embedding Flexmonster Pivot is a simple copy-paste procedure that takes just minutes!
client/
folder into the web project root to your server.<div>
container for the component:
<div id="pivotContainer">The component will appear here</div>
flexmonster.js
into your HTML page. Please note, that your page should be in the same folder as flexmonster/
:
<div id="pivotContainer">The component will appear here</div> <script type="text/javascript" src="flexmonster/flexmonster.js"></script>
<div id="pivotContainer">The component will appear here</div> <script type="text/javascript" src="flexmonster/flexmonster.js"></script> <script> var pivot = new Flexmonster({ container: "pivotContainer", toolbar: true, licenseKey: "Z7CJ-XF9J50-5J4J6X-2H136N-2L036W-1A0O01-6S5S6R-0W0T20-3C" }); </script>
Run your web page and see the empty table. The next step is to see your own data on the grid.
Let’s say you have the following CSV file called data.csv
. To make it simple, copy this file to the flexmonster/
folder.
Category,Size,Color,Destination,Business Type,Country,Price,Quantity,Discount Accessories,262 oz,red,Australia,Specialty Bike Shop,Australia,174,225,23 Accessories,214 oz,yellow,Canada,Specialty Bike Shop,Canada,502,90,17 Accessories,147 oz,white,France,Specialty Bike Shop,France,242,855,37 Accessories,112 oz,yellow,Germany,Specialty Bike Shop,Germany,102,897,42
Add filename
property to report object:
var pivot = new Flexmonster({ container: "pivotContainer", toolbar: true, report: { dataSource: { /* OR URL to the CSV file */ filename: "data.csv", /* OR URL to the JSON file */ /*filename: "data.json",*/ } }, licenseKey: "Z7CJ-XF9J50-5J4J6X-2H136N-2L036W-1A0O01-6S5S6R-0W0T20-3C" );
Launch the web page from browser — here you go! A pivot table is embedded into your project.
See how CSV is used in client/index.html and connect to your own CSV or JSON.
Check pricing | Give a feedback | Documentation | Technical support |