Skip to content

Commit c4039ae

Browse files
authored
Disclosure box sample is made responsive (#548)
1 parent b274a21 commit c4039ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/samples/box/disclosure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const annotation = {
2727
color: 'rgba(208,208,208,0.2)',
2828
content: 'Draft',
2929
font: {
30-
size: 200
30+
size: (ctx) => ctx.chart.chartArea.height / 1.5
3131
},
3232
position: 'center'
3333
}

0 commit comments

Comments
 (0)