OptionalbeforeA custom callback function that parses the data before it's being parsed to the data table format inside the converter.
OptionaldataOptionaldataThe rate in seconds for polling for live data.
Note that polling requires the option enablePolling to be true.
OptionaldataAllows defining multiple data tables within a single connector to adjust options or data parsing in various ways based on the same data source.
dataPool: {
connectors: [{
id: 'data-connector',
type: 'JSON',
data: {
kpis: { a: 1, b: 2 },
more: {
alpha: [1, 2, 3, 4, 5],
beta: [10, 20, 30, 40, 50]
}
},
dataTables: [{
key: 'more',
beforeParse: function ({ more }) {
const keys = Object.keys(more);
return [
keys,
...more[keys[0]].map((_, index) =>
keys.map(key => more[key][index])
)
];
}
}, {
key: 'kpis',
firstRowAsNames: false,
columnIds: ['a', 'b'],
beforeParse: function ({ kpis }) {
return [[kpis.a, kpis.b]];
},
dataModifier: {
type: 'Math',
columnFormulas: [{
column: 'c',
formula: 'A1+B1'
}]
}
}]
}]
}
OptionalenableWhether to enable polling for live data.
OptionalendThe number of the last column to load.
OptionalendThe number of the last row to load.
OptionalfirstWhether to treat the first row of the data set as series names.
The API key for a Google Spreadsheet (user's credentials). See general information on GS.
The Google Spreadsheet key that identifies the sheet to use. See
general information on googleSpreadsheetKey.
The key for a sheet can be extracted from the sheet's URL
https://docs.google.com/spreadsheets/d/{key}.
OptionalgoogleThe Google Spreadsheet range to use in combination with
googleSpreadsheetKey. See
developers.google.com
for details.
If given, it takes precedence over startColumn, endColumn, startRow and
endRow.
OptionalmetadataOptionalstartThe number of the first column to load.
OptionalstartThe number of the first row to load.
The corresponding connector type.
Options of the GoogleSheetsConnector.