Skip to content

Commit 353776e

Browse files
Fix to make "show data labels" on bar chart works (#7363)
1 parent 594e2f2 commit 353776e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

viz-lib/src/visualizations/chart/plotly/prepareDefaultData.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ function prepareBarSeries(series: any, options: any, additionalOptions: any) {
2929
series.offsetgroup = toString(additionalOptions.index);
3030
if (options.showDataLabels) {
3131
series.textposition = "inside";
32+
} else {
33+
series.textposition = "none";
3234
}
3335
return series;
3436
}

0 commit comments

Comments
 (0)