From b0faf238c27f858b2796e2165aca8e2f32840802 Mon Sep 17 00:00:00 2001 From: Allen Short Date: Fri, 22 Feb 2019 18:16:48 -0600 Subject: [PATCH] Use series name as pie chart label It was unconditionally using the column name; this uses the series name instead if specified in the chart editor. --- client/app/visualizations/chart/plotly/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/visualizations/chart/plotly/utils.js b/client/app/visualizations/chart/plotly/utils.js index ad62871466..fdd7982178 100644 --- a/client/app/visualizations/chart/plotly/utils.js +++ b/client/app/visualizations/chart/plotly/utils.js @@ -556,7 +556,7 @@ export function prepareLayout(element, seriesList, options, data) { y: yPosition + cellHeight - 0.015, xanchor: 'center', yanchor: 'top', - text: series.name, + text: options.seriesOptions[series.name].name || series.name, showarrow: false, }; }));