-
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.
Enable arbitrary rotation of datapoints (#5319)
- Loading branch information
1 parent
387a23d
commit 0ddd0ee
Showing
10 changed files
with
218 additions
and
69 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
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
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
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
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
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
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
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
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
Oops, something went wrong.
0ddd0ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I'm just new to Github, so I hope I am doing this the right way.
I appreciate the rotated point very much (I had hacked into my copy of Chartjs myself the last couple of days :-)).
I would like to suggest to add the possibility of specifying the point-for-point rotation within the data series as a third value, just like the radius in the bubble chart. So, for each data point, we would specify
{x: 10, y: 14, a: 315} (a for angle).
This is nice for displaying wind information: we can combine wind speed and direction in one chart!
I hope this serves a purpose.
0ddd0ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sfrauenfelder Comments in code are not ideal to keep track of feature requests, it would be better to create an issue with a good description of your use case, then we can discuss about the implementation.
Though, I'm not sure it should be part of the dataset data but instead should be a scriptable option (as it's already the case for the bubble chart). Then we can handle more use cases and data structures:
Scriptable options are only available for bubble charts but should be implemented for all charts.