Remove global from defaults (#6893)

This commit is contained in:
Jukka Kurkela
2020-01-03 21:07:38 +02:00
committed by Evert Timberg
parent 099e552e6d
commit f4792306e0
50 changed files with 478 additions and 498 deletions

View File

@@ -26,16 +26,14 @@ defaults._set('bar', {
}
});
defaults._set('global', {
datasets: {
bar: {
categoryPercentage: 0.8,
barPercentage: 0.9,
animation: {
numbers: {
type: 'number',
properties: ['x', 'y', 'base', 'width', 'height']
}
defaults._set('datasets', {
bar: {
categoryPercentage: 0.8,
barPercentage: 0.9,
animation: {
numbers: {
type: 'number',
properties: ['x', 'y', 'base', 'width', 'height']
}
}
}

View File

@@ -36,12 +36,10 @@ defaults._set('horizontalBar', {
}
});
defaults._set('global', {
datasets: {
horizontalBar: {
categoryPercentage: 0.8,
barPercentage: 0.9
}
defaults._set('datasets', {
horizontalBar: {
categoryPercentage: 0.8,
barPercentage: 0.9
}
});

View File

@@ -27,11 +27,9 @@ defaults._set('scatter', {
}
});
defaults._set('global', {
datasets: {
scatter: {
showLine: false
}
defaults._set('datasets', {
scatter: {
showLine: false
}
});