getScatter
Last updated
Was this helpful?
Last updated
Was this helpful?
A Scatter model is a data model that represents bi-variable data points defined as numerical x and y values. Suitable for rendering scatter plots and other similar charts.
The getScatter
model inherits all options from the , plus:
xAxisColumn: the name of the column that will be used for getting the first variable (x axis) of each set. It also accepts a list of column names, that can be then aggregated using xAxisJoinOperation
.
xAxisJoinOperation (optional): the aggregation that will be performed to aggregate an array in xAxisColumn
into a single one. Accepted values are:
count
avg
min
max
sum
yAxisColumn: the name of the column that will be used for getting the second variable (y axis) of each set. It also accepts a list of column names, that can be then aggregated using yAxisJoinOperation
.
yAxisJoinOperation (optional): the aggregation that will be performed to aggregate an array in yAxisColumn
into a single one. Accepted values are:
count
avg
min
max
sum
A two-dimensional array containing a pair of numerical values for each set of variables.
The response will be limited to the first 500 rows for the given combination of sources and filters.
The response can be then freely mapped to any charting library to create data visualizations like a scatterplot chart.