mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-12 19:26:49 +01:00
Font validate style, move defaults to weight (#8877)
This commit is contained in:
@@ -43,7 +43,7 @@ const config = {
|
||||
font: {
|
||||
family: 'Comic Sans MS',
|
||||
size: 20,
|
||||
style: 'bold',
|
||||
weight: 'bold',
|
||||
lineHeight: 1.2,
|
||||
},
|
||||
padding: {top: 20, left: 0, right: 0, bottom: 0}
|
||||
@@ -59,7 +59,7 @@ const config = {
|
||||
family: 'Times',
|
||||
size: 20,
|
||||
style: 'normal',
|
||||
lineHeight: 1.2,
|
||||
lineHeight: 1.2
|
||||
},
|
||||
padding: {top: 30, left: 0, right: 0, bottom: 0}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ const config = {
|
||||
font: function(context) {
|
||||
if (context.tick && context.tick.major) {
|
||||
return {
|
||||
style: 'bold',
|
||||
weight: 'bold',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user