You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Lens uses the multi_table data structure to pass data from the datasource to the visualization. We decided to get rid of this additional context type and use multiple individual datatable contexts instead which are passed over as variables.
Datasource side
Currently, the expression created by the datasource looks like this:
var_set name="layer1" value={esaggs...} | var "layer1" | pie_chart
Use the var function to read the only layer, then pass it to the existing chart function. The chart function has to be changed to receive a regular datatable instead of multi_table.
Visualization - Multi table cases (xy chart)
Currently, it works like this (receving a multi table as input):
The individual layers are passed in via array arguments (basically moving the multi table concept into the chart function).
The multi table also transports an additional information about the current time range - this can be done via the kibana function which should be passed in as a separate argument as well (the passed in kibana_context input contains the time range as well)
The text was updated successfully, but these errors were encountered:
Currently Lens uses the multi_table data structure to pass data from the datasource to the visualization. We decided to get rid of this additional context type and use multiple individual
datatable
contexts instead which are passed over as variables.Datasource side
Currently, the expression created by the datasource looks like this:
This should be changed to
The variable names are the layer ids, the values the datatables of the individual layers
Visualization - Single table cases (everything except for xy chart)
Currently, it works like this (receving a multi table as input):
This should be changed to
Use the
var
function to read the only layer, then pass it to the existing chart function. The chart function has to be changed to receive a regular datatable instead of multi_table.Visualization - Multi table cases (xy chart)
Currently, it works like this (receving a multi table as input):
This should be changed to
The individual layers are passed in via array arguments (basically moving the multi table concept into the chart function).
The multi table also transports an additional information about the current time range - this can be done via the
kibana
function which should be passed in as a separate argument as well (the passed inkibana_context
input contains the time range as well)The text was updated successfully, but these errors were encountered: