# Get the values of a chart, a table or a scatter plot

Get the values of a chart, a table or a scatter plot by using the [GetHyperCubeData method](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/service-genericobject-gethypercubedata.htm).

## Example

[](https://help.qlik.com/en-US/sense-developer/Subsystems/EngineAPI/Content/Sense_EngineAPI/WorkingWithAppsAndVisualizations/RenderLayout/get-values-chart-table.htm)

#### The client wants to get the values of a chart. The handle of the chart is 2 and the paging is composed of the first line (qHeight is 1) and the first two columns (qWidth is 2) from the top left (qTop and q Left set to 0).

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "GetHyperCubeData",
  "handle": 2,
  "params": [
    "/qHyperCubeDef",
    [
      {
        "qTop": 0,
        "qLeft": 0,
        "qHeight": 1,
        "qWidth": 2
      }
    ]
  ]
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "qDataPages": [
      {
        "qMatrix": [
          [
            {
              "qText": "Germany",
              "qNum": "NaN",
              "qElemNumber": 0,
              "qState": "O"
            },
            {
              "qText": "1",
              "qNum": 1,
              "qElemNumber": 0,
              "qState": "L"
            }
          ]
        ],
        "qTails": [
          {
            "qUp": 0,
            "qDown": 0
          }
        ],
        "qArea": {
          "qLeft": 0,
          "qTop": 0,
          "qWidth": 2,
          "qHeight": 1
        }
      }
    ]
  }
}
```

Following the paging defined, the chart object contains two values: Germany is a non numeric value (qNum is NaN) and [1] is a numeric value. The first value Germany is not selected (qState is O) and the second value is locked (qState is L).

For more information on the returned parameters, see [GetHyperCubeData method](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/service-genericobject-gethypercubedata.htm).