You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+23-1
Original file line number
Diff line number
Diff line change
@@ -25,10 +25,32 @@ This is a lightweight and simple pivot table realization for
25
25
26
26
## Integration
27
27
28
+
#### Javascript
29
+
28
30
Build the project, and then include <code>build/css/lightPivotTable.css</code> and
29
31
<code>build/js/lightPivotTable.js</code> files into your project. Usage is shown in
30
32
<code>build/example/index.html</code> example.
31
33
34
+
Then use global object <i>LightPivotTable</i>:
35
+
```js
36
+
var setup = { // Object that contain settings. Any setting may be missed.
37
+
container:document.getElementById("pivot"), // HTMLElement on DOM which will contain table.
38
+
dataSource: {
39
+
MDX2JSONSource:"http://localhost:57772/SAMPLES", // MDX2JSON source server address
40
+
basicMDX:"SELECT NON EMPTY [Product].[P1].[Product Category].Members ON 0, NON EMPTY [Outlet].[H1].[Region].Members ON 1 FROM [HoleFoods]"// basic MDX which are going to be rendered when widget loads
41
+
}
42
+
, showSummary:true// show summary by columns
43
+
, formatNumbers:"#,###.##"// number formatting mask
0 commit comments