Skip to content

Commit

Permalink
[Visualizations] Adds visConfig.title and uiState to build pipeline f…
Browse files Browse the repository at this point in the history
…unction (#84456)

* add visConfig.title to pipeline visualization function

- To be consistent with visualizations built with "buildPipelineVisFunction".
- To provide "title" information for visualizations.

* add uiState to pipeline visualization function

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
fbaligand and kibanamachine authored Nov 30, 2020
1 parent 4c59629 commit d11ca6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/visualizations/public/legacy/build_pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,10 @@ export const buildPipeline = async (vis: Vis, params: BuildPipelineParams) => {
} else {
const visConfig = { ...vis.params };
visConfig.dimensions = schemas;
visConfig.title = title;
pipeline += `visualization type='${vis.type.name}'
${prepareJson('visConfig', visConfig)}
${prepareJson('uiState', uiState)}
metricsAtAllLevels=${vis.isHierarchical()}
partialRows=${vis.params.showPartialRows || false} `;
if (indexPattern) {
Expand Down

0 comments on commit d11ca6c

Please sign in to comment.