-
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.
Fix drawing angle lines on reversed radial scale (#11788)
* Fix drawing angle lines on reversed radial scale * add test * Show ticks in test --------- Co-authored-by: Jacco van den Berg <jacco@jem-id.nl>
- Loading branch information
1 parent
228a485
commit ff74078
Showing
3 changed files
with
36 additions
and
1 deletion.
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
35 changes: 35 additions & 0 deletions
35
test/fixtures/scale.radialLinear/anglelines-reverse-scale.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,35 @@ | ||
module.exports = { | ||
config: { | ||
type: 'radar', | ||
data: { | ||
labels: ['A', 'B', 'C', 'D', 'E'], | ||
datasets: [{ | ||
data: [1, 1, 2, 3, 5] | ||
}] | ||
}, | ||
options: { | ||
responsive: false, | ||
scales: { | ||
r: { | ||
reverse: true, | ||
grid: { | ||
display: true, | ||
}, | ||
angleLines: { | ||
color: 'red', | ||
lineWidth: 5, | ||
}, | ||
pointLabels: { | ||
display: false | ||
}, | ||
ticks: { | ||
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.