Skip to content

Commit 7752e7b

Browse files
Fix broken chart issue when change font-size Codeinwp/visualizer-pro#307
1 parent a944634 commit 7752e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/render-chartjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
}
171171

172172
if(typeof settings['fontSize'] !== 'undefined' && settings['fontSize'] !== ''){
173-
Chart.defaults.global.defaultFontSize = settings['fontSize'];
173+
Chart.defaults.global.defaultFontSize = parseInt(settings['fontSize']);
174174
delete settings['fontSize'];
175175
}
176176

0 commit comments

Comments
 (0)