Skip to content

Commit caeb348

Browse files
committed
Chart titles centered horizontally based on plot area (#1728)
1 parent fbeb302 commit caeb348

4 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/chart/src/ChartUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,6 +1940,8 @@ class ChartUtils {
19401940
font: {
19411941
color: title_color,
19421942
},
1943+
xanchor: 'center',
1944+
xref: 'paper',
19431945
yanchor: 'top',
19441946
pad: { ...ChartUtils.DEFAULT_TITLE_PADDING },
19451947
y: 1,
4 Bytes
Loading
4 Bytes
Loading
-25 Bytes
Loading

0 commit comments

Comments
 (0)