For production use, please go to Download Page to get a WebPivotTable package.
There are two editions of WebPivotTable: Free edition and Pro edition. Free edition has almost the same functionality as Pro edition except that Free edition does not provide some APIs.
When you get the packaged zip file, unzip it to any directory and you will see list below directory structure:
webpivotptable ├─-- public | ├─-- dist | | └─-- wpt.js | |--- lang | | ├─-- de.json | | ├─-- en.json | | ├─-- es.json | | ├─-- it.json | | ├─-- pt.json | | ├─-- tr-TR.json | | └─-- zh-CN.json | ├─-- index.html | ├─-- demo.html | ├─-- ... | └─-- quick-start.html └─-- server ├─-- README.md ├─-- package.json ├─-- server.js └─-- wpt.json
"public" directory is all you need to integrate WebPivotTable into your web page or web application. Copy this directory into root public directory of your web server, and that's it, installation is done.
"lang" sub-directory includes all language files to support internationalization(i18n).
Those html files under public directory are not necessary for WebPivotTable to work. They are just samples on how to integrate WebPivotTable into different environments, you can remove them anytime.
"server" directory includes a NodeJs proxy server to support cross domain access. WebPivotTable has a default proxy server setting so that you do not need to run your own proxy server. But if run your own proxy server is necessary, please follow README.md inside this directory to set it up. Please reference Cross domain access for more details.
Then, we can put a "wpt-pivot-table" tag into page:
<body> <div style="width: 600px; height:480px;"> <web-pivot-table /> </div> </body>
That's all. Simple enough. Now we have a full functional WebPivotTable on our web page.
List below is an example html file:
WebPivotTable provides lots of options for developer to customize its look and feel and behaviours in web page or web application.
WebPivotTable also provides lots of APIs for developers to call from hosted web page or web application. For example, developers can use these APIs to load source data from any kind of data resources, or to save WebPivotTable into server side for future reload, etc.