Back to homepage

Column and row resizing

You can change the default size of the cells with a few clicks. 

To resize the rows and columns

  • Drag the header border of the row/column to resize its height/width.
  • Drag the header border of the row to resize its height.

Example

Resize the columns widths:

To return the cells to the initial size, click twice on the header of the row or column:

You can change the default size of the cells with a few clicks. 

To resize the rows and columns

  • Drag the header border of the row/column to resize its height/width.
  • Drag the header border of the row to resize its height.

Example

Resize the columns widths:

To return the cells to the initial size, click twice on the header of the row or column:

Use the conditional formatting feature to highlight important values and make your report look more personalized.

To apply conditional formatting

To implement your own logic of highlighting the data, follow the steps below:

  1. On the Toolbar, choose the Format tab (menu_format) > Conditional formatting.
  2. Select the plus-sign icon.
  3. Choose a value that you want to format (e.g., Sum of Price). If necessary, you can format all values at once.
  4. Add a rule; for example, “Less than 100” will apply the changes to all the cells with a value less than 100.
  5. Select colors for the text and background, and change the font if necessary.
  6. Press the Apply button to see the changes on the grid.

You can add multiple conditions of formatting to the same measure. All of them are saved within a Conditional Format Object.

Use the conditional formatting feature to highlight important values and make your report look more personalized.

To apply conditional formatting

To implement your own logic of highlighting the data, follow the steps below:

  1. On the Toolbar, choose the Format tab (menu_format) > Conditional formatting.
  2. Select the plus-sign icon.
  3. Choose a value that you want to format (e.g., Sum of Price). If necessary, you can format all values at once.
  4. Add a rule; for example, “Less than 100” will apply the changes to all the cells with a value less than 100.
  5. Select colors for the text and background, and change the font if necessary.
  6. Press the Apply button to see the changes on the grid.

You can add multiple conditions of formatting to the same measure. All of them are saved within a Conditional Format Object.

Use the conditional formatting feature to highlight important values and make your report look more personalized.

To apply conditional formatting

To implement your own logic of highlighting the data, follow the steps below:

  1. On the Toolbar, choose the Format tab (menu_format) > Conditional formatting.
  2. Select the plus-sign icon.
  3. Choose a value that you want to format (e.g., Sum of Price). If necessary, you can format all values at once.
  4. Add a rule; for example, “Less than 100” will apply the changes to all the cells with a value less than 100.
  5. Select colors for the text and background, and change the font if necessary.
  6. Press the Apply button to see the changes on the grid.

You can add multiple conditions of formatting to the same measure. All of them are saved within a Conditional Format Object.

Our pivot table can easily be translated into different languages. This article describes the process of language localization for WebDataRocks reporting component.

Available localizations

Localization files for new languages can be added by creating a new pull request on GitHub. Our team highly appreciates any help.

Create a custom localization file

Follow the steps below to create your own localization file based on our template:

Step 1. Download template JSON file. It contains all labels that are used in WebDataRocks and English values for them.

Step 2. Translate values into the language you want.

For example, you want a Spanish localization. You start from replacing the first label-value pair from the template ("flatHierarchyBox": "Select and arrange columns") with its Spanish equivalent ("flatHierarchyBox": "Seleccionar y organizar columnas") and keep on the same way with the whole file (e.g., check Spanish translated sample).

Localize a specific report

To set a specific language for a report, add a report.localization property with the necessary localization:

Set the localization as a URL to the file

const report = {
dataSource: {
filename: "https://cdn.webdatarocks.com/data/data.csv"
},
// Replace this file with your own localization file
localization: "https://cdn.webdatarocks.com/loc/es.json"
};

Set the localization as an inline JSON object

const report = {
dataSource: {
filename: "https://cdn.webdatarocks.com/data/data.csv"
},
// Replace the translation below with your own labels
localization: {
toolbar: {
connect: "Conectar",
open: "Abierto",
save: "Salvar",
export: "Exportar",
// Other labels
}
}
};

Set localization for all reports

If you want to set one language for all reports, add a global object with localization when initializing WebDataRocks:

Set the localization as a URL to the file

<script setup>
import { Pivot } from "@webdatarocks/vue-webdatarocks";
import "@webdatarocks/webdatarocks/webdatarocks.css";

const report = {
// Your report
};

const globalReport = {
// Replace this file with your own localization file
localization: "https://cdn.webdatarocks.com/loc/es.json"
};
</script>

<template>
<div>
<Pivot
v-bind:report="report"
v-bind:global="globalReport"
toolbar
/>
</div>
</template>

Set the localization as an inline JSON object

<script setup>
import {Pivot} from "@webdatarocks/vue-webdatarocks";
import "@webdatarocks/webdatarocks/webdatarocks.css";

const report = {
// Your report
};

const globalReport = {
// Replace the translation below with your own labels
localization: {
toolbar: {
connect: "Conectar",
open: "Abierto",
save: "Salvar",
export: "Exportar",
// Other labels
}
}
};
</script>

<template>
<div>
<Pivot
v-bind:report="report"
v-bind:global="globalReport"
toolbar
/>
</div>
</template>

Learn more about the Global Object.

Our pivot table can easily be translated into different languages. This article describes the process of language localization for WebDataRocks reporting component.

Available localizations

Localization files for new languages can be added by creating a new pull request on GitHub. Our team highly appreciates any help.

Create a custom localization file

Follow the steps below to create your own localization file based on our template:

Step 1. Download template JSON file. It contains all labels that are used in WebDataRocks and English values for them.

Step 2. Translate values into the language you want.

For example, you want a Spanish localization. You start from replacing the first label-value pair from the template ("flatHierarchyBox": "Select and arrange columns") with its Spanish equivalent ("flatHierarchyBox": "Seleccionar y organizar columnas") and keep on the same way with the whole file (e.g., check Spanish translated sample).

Localize a specific report

To set a specific language for a report, add a report.localization property with the necessary localization:

Set the localization as a URL to the file

report = {
dataSource: {
filename: "https://cdn.webdatarocks.com/data/data.csv"
},
// Replace this file with your own localization file
localization: "https://cdn.webdatarocks.com/loc/es.json"
};

Set the localization as an inline JSON object

report = {
dataSource: {
filename: "https://cdn.webdatarocks.com/data/data.csv"
},
// Replace the translation below with your own labels
localization: {
toolbar: {
connect: "Conectar",
open: "Abierto",
save: "Salvar",
export: "Exportar",
// Other labels
}
}
};

Set localization for all reports

If you want to set one language for all reports, add a global object with localization when initializing WebDataRocks:

Set the localization as a URL to the file

    import { Component } from "@angular/core";
    import { WebdatarocksPivotModule } from "@webdatarocks/ngx-webdatarocks";
    
    @Component({
      selector: "app-root",
      standalone: true,
      imports: [WebdatarocksPivotModule],
      templateUrl: "./app.component.html",
      styleUrls: ["./app.component.css"]
    })
    export class AppComponent {
      report = {
        // Your report
      };
      globalReport = {
        // Replace this file with your own localization file
        localization: "https://cdn.webdatarocks.com/loc/es.json"
      };
    }
    <app-wbr-pivot
     [toolbar]="true"
     [report]="report"
     [global]="globalReport">
    </app-wbr-pivot>

    Set the localization as an inline JSON object

      import { Component } from "@angular/core";
      import { WebdatarocksPivotModule } from "@webdatarocks/ngx-webdatarocks";
      
      @Component({
        selector: "app-root",
        standalone: true,
        imports: [WebdatarocksPivotModule],
        templateUrl: "./app.component.html",
        styleUrls: ["./app.component.css"]
      })
      export class AppComponent {
        report = {
          // Your report
        };
        globalReport = {
          // Replace the translation below with your own labels
          localization: {
            toolbar: {
              connect: "Conectar",
              open: "Abierto",
              save: "Salvar",
              export: "Exportar",
              // Other labels
            }
          }
        };
      }
      <app-wbr-pivot
       [toolbar]="true"
       [report]="report"
       [global]="globalReport">
      </app-wbr-pivot>

      Learn more about the Global Object.

      Our pivot table can easily be translated into different languages. This article describes the process of language localization for WebDataRocks reporting component.

      Available localizations

      Localization files for new languages can be added by creating a new pull request on GitHub. Our team highly appreciates any help.

      Create a custom localization file

      Follow the steps below to create your own localization file based on our template:

      Step 1. Download template JSON file. It contains all labels that are used in WebDataRocks and English values for them.

      Step 2. Translate values into the language you want.

      For example, you want a Spanish localization. You start from replacing the first label-value pair from the template ("flatHierarchyBox": "Select and arrange columns") with its Spanish equivalent ("flatHierarchyBox": "Seleccionar y organizar columnas") and keep on the same way with the whole file (e.g., check Spanish translated sample).

      Localize a specific report

      To set a specific language for a report, add a report.localization property with the necessary localization:

      Set the localization as a URL to the file

      const report = {
      dataSource: {
      filename: "https://cdn.webdatarocks.com/data/data.csv"
      },
      // Replace this file with your own localization file
      localization: "https://cdn.webdatarocks.com/loc/es.json"
      };

      Set the localization as an inline JSON object

      const report = {
      dataSource: {
      filename: "https://cdn.webdatarocks.com/data/data.csv"
      },
      // Replace the translation below with your own labels
      localization: {
      toolbar: {
      connect: "Conectar",
      open: "Abierto",
      save: "Salvar",
      export: "Exportar",
      // Other labels
      }
      }
      };

      Set localization for all reports

      If you want to set one language for all reports, add a global object with localization when initializing WebDataRocks:

      Set the localization as a URL to the file

      import React from "react";
      import * as WebDataRocksReact from "@webdatarocks/react-webdatarocks";

      export default function App() {
      const report = {
      // Your report
      };

      const globalReport = {
      // Replace this file with your own localization file
      localization: "https://cdn.webdatarocks.com/loc/es.json"
      };

      return (
      <div>
      <WebDataRocksReact.Pivot
      toolbar={true}
      report={report}
      global={globalReport}
      />
      </div>
      );
      }

      Set the localization as an inline JSON object

      import React from "react";
      import * as WebDataRocksReact from "@webdatarocks/react-webdatarocks";

      export default function App() {
      const report = {
      // Your report
      };

      const globalReport = {
      // Replace the translation below with your own labels
      localization: {
      toolbar: {
      connect: "Conectar",
      open: "Abierto",
      save: "Salvar",
      export: "Exportar",
      // Other labels
      }
      }
      };

      return (
      <div>
      <WebDataRocksReact.Pivot
      toolbar={true}
      report={report}
      global={globalReport}
      />
      </div>
      );
      }

      Learn more about the Global Object.

      A grand total is a value that is composed by adding together other total amounts (subtotals) of the row/column.

      When creating a report, you can change the default way grand totals and subtotals are displayed on the grid. The available options are:

      • Show and hide grand totals for the entire report
      • Show and hide subtotals for the entire report
      • Show grand totals only for the rows or columns
      • Show subtotals only for the rows or columns

      To show or hide grand totals and subtotals

      • Via UI
        1. Go to the Options ( menu_options ) tab on the Toolbar.
        2. Choose how to display grand totals and subtotals.
        3. Apply the changes.
      • Programmatically
        • Configure totals through the grid.showTotals property of the Options Object:
          const report = {
            options: {
              grid: {
                showTotals: "off"
              }
            }
          }
        • Configure grand totals through the grid.showGrandTotals property of the Options Object:
          const report = {
            options: {
              grid: {
                showGrandTotals: "rows"
              }
            }
          };
        It is also possible to set grid.showTotals and grid.showGrandTotals options for all reports.

      Example

      Hide grand totals from the entire report:

      Hide grand totals from the rows:

      The layout of subtotals is changed similarly.

      A grand total is a value that is composed by adding together other total amounts (subtotals) of the row/column.

      When creating a report, you can change the default way grand totals and subtotals are displayed on the grid. The available options are:

      • Show and hide grand totals for the entire report
      • Show and hide subtotals for the entire report
      • Show grand totals only for the rows or columns
      • Show subtotals only for the rows or columns

      To show or hide grand totals and subtotals

      • Via UI
        1. Go to the Options ( menu_options ) tab on the Toolbar.
        2. Choose how to display grand totals and subtotals.
        3. Apply the changes.
      • Programmatically
        • Configure totals through the grid.showTotals property of the Options Object:
          report = {
            options: {
              grid: {
                showTotals: "off"
              }
            }
          }
        • Configure grand totals through the grid.showGrandTotals property of the Options Object:
          report = {
            options: {
              grid: {
                showGrandTotals: "rows"
              }
            }
          };
        It is also possible to set grid.showTotals and grid.showGrandTotals options for all reports.

      Example

      Hide grand totals from the entire report:

      Hide grand totals from the rows:

      The layout of subtotals is changed similarly.

      Move up