Skip to content

Commit cf89ea4

Browse files
authored
Merge pull request #815 from Codeinwp/bugfix/307
Fix broken chart issue when change font-size
2 parents 79c0705 + 7752e7b commit cf89ea4

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
@@ -178,7 +178,7 @@
178178
}
179179

180180
if(typeof settings['fontSize'] !== 'undefined' && settings['fontSize'] !== ''){
181-
Chart.defaults.global.defaultFontSize = settings['fontSize'];
181+
Chart.defaults.global.defaultFontSize = parseInt(settings['fontSize']);
182182
delete settings['fontSize'];
183183
}
184184

0 commit comments

Comments
 (0)