{
  "steps": [
    {
      "type": "ColumnsSelector",
      "params": {
        "columns": [
          "ip"
        ],
        "keep": false
      },
      "preview": false,
      "disabled": false
    }
  ],
  "name": "Untitled script",
  "tags": [],
  "explorationSampling": {
    "selection": {
      "samplingMethod": "HEAD_SEQUENTIAL",
      "partitionSelectionMethod": "ALL",
      "maxRecords": 30000,
      "targetRatio": 0.02
    },
    "autoRefreshSample": false,
    "_refreshTrigger": 0
  },
  "vizSampling": {
    "autoRefreshSample": false,
    "_refreshTrigger": 0
  },
  "exploreUIParams": {
    "autoRefresh": true
  },
  "explorationFilters": [
    {
      "type": "global_search",
      "$$hashKey": "0PY"
    }
  ],
  "expectedInputSchema": {
    "userModified": false,
    "columns": [
      {
        "name": "customer_id",
        "type": "string",
        "maxLength": 1000
      },
      {
        "name": "ip",
        "type": "string",
        "maxLength": 1000
      },
      {
        "name": "ip_country",
        "type": "string",
        "maxLength": 1000
      },
      {
        "name": "pages_visited",
        "type": "double",
        "maxLength": 1000
      },
      {
        "name": "campain",
        "type": "string",
        "maxLength": 1000
      },
      {
        "name": "predicted_value",
        "type": "double",
        "maxLength": 1000
      }
    ]
  },
  "charts": [
    {
      "data": {
        "name": "Predicted revenue per country",
        "genericMeasures": [
          {
            "column": "predicted_value",
            "function": "SUM",
            "type": "NUMERICAL",
            "displayed": true,
            "isA": "measure",
            "displayAxis": "axis1",
            "displayType": "column"
          }
        ],
        "dimensions": [
          {
            "column": "ip_country",
            "type": "ALPHANUM",
            "maxValues": 20,
            "generateOthersCategory": true,
            "filters": [],
            "isA": "dimension",
            "possibleSorts": [
              {
                "type": "NATURAL",
                "label": "Natural ordering"
              },
              {
                "type": "AGGREGATION",
                "measureIdx": 0,
                "label": "Sum of predicted_value"
              }
            ],
            "sort": {
              "type": "AGGREGATION",
              "measureIdx": 0,
              "label": "Average of predicted_value"
            },
            "possibleNewFilters": [
              {
                "type": "MEASURE_VALUES",
                "measureFilterId": 0,
                "label": "Sum of predicted_value",
                "group": "Measure values"
              }
            ]
          }
        ],
        "type": "grouped_bars",
        "includeZero": true,
        "chartOptions": {},
        "hexbinRadius": 20,
        "yAxisMode": "NORMAL",
        "xAxisMode": "NORMAL",
        "computeMode": "NONE",
        "filters": [],
        "colorMeasures": [],
        "sizeMeasures": [],
        "measures": [
          {
            "column": "predicted_value",
            "function": "SUM",
            "type": "NUMERICAL",
            "displayed": true,
            "isA": "measure",
            "displayAxis": "axis1",
            "displayType": "column"
          }
        ]
      },
      "$$hashKey": "1K8",
      "chartOptions": {
        "zeroEnabled": true,
        "enabledYAxisModes": [
          {
            "value": "NORMAL",
            "label": "Normal",
            "shortLabel": "Normal"
          },
          {
            "value": "LOG",
            "label": "Logarithmic scale",
            "shortLabel": "Log"
          }
        ],
        "enabledXAxisModes": [
          {
            "value": "NORMAL",
            "label": "Normal",
            "shortLabel": "Normal"
          },
          {
            "value": "CUMULATIVE",
            "label": "Cumulative values",
            "shortLabel": "Cumulative"
          },
          {
            "value": "DIFFERENCE",
            "label": "Difference (replace each value by the diff to the previous one)",
            "shortLabel": "Difference"
          }
        ],
        "enabledComputeModes": [
          {
            "value": "NONE",
            "label": "No computation",
            "shortLabel": "None"
          },
          {
            "value": "LIFT_AVG",
            "shortLabel": "Ratio to AVG",
            "label": "Compute ratio of each value relative to average of values"
          }
        ],
        "vAxisOptionsDisplayed": true,
        "hAxisOptionsDisplayed": true,
        "computeOptionsDisplayed": true
      },
      "multiplotDisplayModes": [
        "column",
        "line"
      ],
      "dateModes": [
        {
          "group": "Timeline",
          "value": "YEAR",
          "label": "Year"
        },
        {
          "group": "Timeline",
          "value": "MONTH",
          "label": "Month"
        },
        {
          "group": "Timeline",
          "value": "WEEK",
          "label": "Week"
        },
        {
          "group": "Timeline",
          "value": "DAY",
          "label": "Day"
        },
        {
          "group": "Timeline",
          "value": "HOUR",
          "label": "Hour"
        },
        {
          "group": "Regroup",
          "value": "QUARTER_OF_YEAR",
          "label": "Quarter of Year"
        },
        {
          "group": "Regroup",
          "value": "MONTH_OF_YEAR",
          "label": "Month of Year"
        },
        {
          "group": "Regroup",
          "value": "WEEK_OF_YEAR",
          "label": "Week of year"
        },
        {
          "group": "Regroup",
          "value": "DAY_OF_MONTH",
          "label": "Day of month"
        },
        {
          "group": "Regroup",
          "value": "DAY_OF_WEEK",
          "label": "Day of week"
        },
        {
          "group": "Regroup",
          "value": "HOUR_OF_DAY",
          "label": "Hour of day"
        }
      ]
    }
  ]
}