Skip to content

Commit

Permalink
[update] working with data examples fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tbshag2 committed Jul 2, 2024
1 parent 07a1816 commit fe24e8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<h1 align="center"><a href="https://docs.dhtmlx.com/pivot/">DHTMLX Pivot Documentation</a></h1>

TODO!!!

## Explore documentation locally

To run the Pivot documentation locally, take the following steps:
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/working-with-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Create the Pivot structure using the [`config`](/api/config/config-property) pro

Example:

~~~jsx {4-15}
~~~jsx {4-18}
const widget = new pivot.Pivot("#pivot", {
fields,
data,
Expand All @@ -58,7 +58,7 @@ const widget = new pivot.Pivot("#pivot", {

## Sorting data

The widget API allows configuring the sorting settings that are applied applied to all areas (values, columns and rows) during aggregation. The sorting in UI is enabled by clicking the column header.
The widget API allows configuring the sorting settings that are applied to all areas (values, columns and rows) during aggregation. The sorting in UI is enabled by clicking the column header.

To set default sorting values, apply the **sort** parameter of the [`fields`](/api/config/fields-property) property. It accepts either the "asc" or "desc" value, or a custom sorting function.

Expand Down Expand Up @@ -549,6 +549,6 @@ const widget = new pivot.Pivot("#pivot", {

## Example

In this snippet you can see how to apply maths operations:
In this snippet you can see how to apply custom maths operations:

<iframe src="https://snippet.dhtmlx.com/lv90d8q2?mode=result" frameborder="0" class="snippet_iframe" width="100%" height="600"></iframe>

0 comments on commit fe24e8f

Please sign in to comment.