-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
radialLinear: fix positioning & scaling (#10021)
* radialLinear: fix positioning & scaling * bloody pixels * better radar fixtures
- Loading branch information
Showing
55 changed files
with
828 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
test/fixtures/controller.polarArea/pointLabels/centered-180.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module.exports = { | ||
config: { | ||
type: 'polarArea', | ||
data: { | ||
datasets: [{ | ||
data: [1, 2, 3, 4], | ||
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003'] | ||
}], | ||
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']] | ||
}, | ||
options: { | ||
scales: { | ||
r: { | ||
startAngle: 180, | ||
pointLabels: { | ||
display: true, | ||
centerPointLabels: true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions
26
test/fixtures/controller.polarArea/pointLabels/centered-45.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module.exports = { | ||
config: { | ||
type: 'polarArea', | ||
data: { | ||
datasets: [{ | ||
data: [1, 2, 3, 4], | ||
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003'] | ||
}], | ||
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']] | ||
}, | ||
options: { | ||
scales: { | ||
r: { | ||
startAngle: 45, | ||
pointLabels: { | ||
display: true, | ||
centerPointLabels: true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/controller.polarArea/pointLabels/centered.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
config: { | ||
type: 'polarArea', | ||
data: { | ||
datasets: [{ | ||
data: [1, 2, 3, 4], | ||
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003'] | ||
}], | ||
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']] | ||
}, | ||
options: { | ||
scales: { | ||
r: { | ||
pointLabels: { | ||
display: true, | ||
centerPointLabels: true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/controller.polarArea/pointLabels/default-180.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
config: { | ||
type: 'polarArea', | ||
data: { | ||
datasets: [{ | ||
data: [1, 2, 3, 4], | ||
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003'] | ||
}], | ||
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']] | ||
}, | ||
options: { | ||
scales: { | ||
r: { | ||
startAngle: 180, | ||
pointLabels: { | ||
display: true, | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
test/fixtures/controller.polarArea/pointLabels/default-45.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
config: { | ||
type: 'polarArea', | ||
data: { | ||
datasets: [{ | ||
data: [1, 2, 3, 4], | ||
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003'] | ||
}], | ||
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']] | ||
}, | ||
options: { | ||
scales: { | ||
r: { | ||
startAngle: 45, | ||
pointLabels: { | ||
display: true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module.exports = { | ||
config: { | ||
type: 'polarArea', | ||
data: { | ||
datasets: [{ | ||
data: [1, 2, 3, 4], | ||
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003'] | ||
}], | ||
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']] | ||
}, | ||
options: { | ||
scales: { | ||
r: { | ||
pointLabels: { | ||
display: true, | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
test/fixtures/controller.polarArea/pointLabels/withTitle/bottom-centered-45.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module.exports = { | ||
config: { | ||
type: 'polarArea', | ||
data: { | ||
datasets: [{ | ||
data: [1, 2, 3, 4], | ||
backgroundColor: ['#f003', '#0f03', '#00f3', '#0003'] | ||
}], | ||
labels: [['label 1', 'line 2'], ['label 2', 'line 2'], ['label 3', 'line 2'], ['label 4', 'line 2']] | ||
}, | ||
options: { | ||
plugins: { | ||
title: { | ||
display: true, | ||
position: 'bottom', | ||
text: 'Chart Title' | ||
}, | ||
legend: false | ||
}, | ||
scales: { | ||
r: { | ||
startAngle: 45, | ||
pointLabels: { | ||
display: true, | ||
centerPointLabels: true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
options: { | ||
spriteText: true | ||
} | ||
}; |
Binary file added
BIN
+48.8 KB
test/fixtures/controller.polarArea/pointLabels/withTitle/bottom-centered-45.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.