Class: LineChartResultSet

sap.bc.ina.api.sina.impl.inav2.sina_impl. LineChartResultSet

<private> new LineChartResultSet()

A result set that yields elements suitable for a line chart.
Since:
  • SAP HANA SPS 06
Source:

Extends

Methods

getElements() → {Array}

Returns the elements of the result set.
Since:
  • SAP HANA SPS 06
Source:
Returns:
A list of result set elements.
Type
Array
Example
var queryProperties = {
    dataSource      : { schemaName  : "SYSTEM",
                                       objectName  : "J_EPM_PRODUCT"
                                     },
                   dimensionX      : {name: 'CATEGORY'},
                   dimensionLine   : {name: 'CURRENCY_CODE'},
                   measureY        : {name: 'PRODUCT_ID', aggregationFunction: 'COUNT'}
               };
               query = sap.bc.ina.api.sina.createLineChartQuery(queryProperties);
var resultSet = query.getResultSetSync();
var elements = resultSet.getEements();
// contents of elements (shortened):
[
                  {
                    "label": "EUR",
                    "value": [
                      {
                        "x": "Notebooks",
                        "y": 6
                      },
                      {
                        "x": "Others",
                        "y": 5
                      },
                      {
                        "x": "Software",
                        "y": 3
                      },
                      {
                        "x": "Speakers",
                        "y": 3
                      },
                      {
                        "x": "Electronics",
                        "y": 2
                      },
                      {
                        "x": "Flat screens",
                        "y": 2
                      },
                      {
                        "x": "Laser printers",
                        "y": 2
                      },
                      {
                        "x": "Mice",
                        "y": 2
                      },
                      {
                        "x": "PC",
                        "y": 2
                      },
                      {
                        "x": "Workstation ensemble",
                        "y": 2
                      }
                    ]
                  },
                  {
                    "label": "USD",
                    "value": [
                      {
                        "x": "Others",
                        "y": 4
                      },
                      {
                        "x": "Flat screens",
                        "y": 2
                      },
                      {
                        "x": "Handhelds",
                        "y": 2
                      },
                      {
                        "x": "High Tech",
                        "y": 2
                      },
                      {
                        "x": "Notebooks",
                        "y": 2
                      },
                      {
                        "x": "Software",
                        "y": 2
                      },
                      {
                        "x": "Electronics",
                        "y": 1
                      },
                      {
                        "x": "Graphic cards",
                        "y": 1
                      },
                      {
                        "x": "Handheld",
                        "y": 1
                      },
                      {
                        "x": "Headset",
                        "y": 1
                      }
                    ]
                  }
               ]