From d11ca6c1dac64a778d9e6009c992a9c6bb113b75 Mon Sep 17 00:00:00 2001 From: Fabien Baligand Date: Mon, 30 Nov 2020 12:30:30 +0100 Subject: [PATCH] [Visualizations] Adds visConfig.title and uiState to build pipeline function (#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> --- src/plugins/visualizations/public/legacy/build_pipeline.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/visualizations/public/legacy/build_pipeline.ts b/src/plugins/visualizations/public/legacy/build_pipeline.ts index d412ec918a71a..0c244876ca6a3 100644 --- a/src/plugins/visualizations/public/legacy/build_pipeline.ts +++ b/src/plugins/visualizations/public/legacy/build_pipeline.ts @@ -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) {