Skip to content

Commit

Permalink
Use series name as pie chart label (#3484)
Browse files Browse the repository at this point in the history
It was unconditionally using the column name; this uses the series name instead
if specified in the chart editor.
  • Loading branch information
Allen Short authored and arikfr committed Feb 25, 2019
1 parent 5d525b8 commit 3fdd308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/visualizations/chart/plotly/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}));
Expand Down

0 comments on commit 3fdd308

Please sign in to comment.