Skip to main content
Pentaho Documentation

Customize PDI Data Explorer

You can customize the PDI Data Explorer as follows.

Use Discrete Axis for Line, Area, and Scatter Charts

By default, the PDI Data Explorer provides time and number dimensions in line, area, and scatter visualizations on a continuous scale axis. The continuous axis is helpful for identifying trends that occur over a period of time, such as financial growth, real estate sales, or test scores.

Prior to Pentaho version 8.1, line and area visualizations used a discrete axis, where the data points display evenly spaced across the axis. Additionally, the scatter visualization only accepted measures in its X-axis and Y-axis zones. However, if you prefer the Time and Number dimensions in Line and Area visualizations on a discrete axis, and to disable the Time and Number dimensions in Scatter visualizations, perform either or both of the following procedures to edit the global mapping configurations:

Set Discrete Axes for Time Dimensions in PDI Data Explorer

To display Time dimensions in the line and area visualizations on a discrete axis, perform the following steps:

  1. Navigate to the /pentaho/design-tools/data-integration/system/karaf/config/web-client system directory and open the config.js file with any text editor.
  2. Locate the Example Rule 9 - Disable the continuous date strategy code block, as shown in this example:
    // Example Rule 9 - Disable the continuous date strategy, to revert
    // to the old behavior (Before 8.1) that represents Time dimensions in a discrete axis.
    /*
    {
      select: { module: "pentaho/visual/role/adaptation/EntityWithTimeIntervalKeyStrategy" },
      apply: { isBrowsable: false }
    },
    */ 
    
  1. Remove the /* marker and the */ marker to uncomment the EntityWithTimeIntervalKeyStrategy command.     
  2. Save and close the file, then refresh the browser.

Your line and area visualizations will display Time dimensions on a discrete axis and the scatter visualization will not be able to provide Time dimensions.

Set Discrete Axes for Number Dimensions in PDI Data Explorer

To display Number dimensions in the line and area visualizations on a discrete axis, perform the following steps:

  1. Navigate to the /pentaho/design-tools/data-integration/system/karaf/config/web-client system directory and open the config.js file with any text editor.
  2. Locate the Example Rule 10 - Disable the continuous number strategy code block, as shown in this example:
    // Example Rule 10 - Disable the continuous number strategy, to revert
    // to the old behavior (Before 8.2) that represents Number dimensions in a discrete axis.
    /*
    {
      select: { module: "pentaho/visual/role/adaptation/EntityWithNumberKeyStrategy" },
      apply: { isBrowsable: false }
    },
    */  
    
  1. Remove the /* marker and the */ marker to uncomment the EntityWithNumberKeyStrategy command.     
  2. Save and close the file, then refresh the browser.

Your line and area visualizations will display Number dimensions on a discrete axis and the scatter visualization will not be able to provide Number dimensions.