-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add team score over time line graphs #1
Comments
Unfortunately I can't seem find a good .NET Core bitmap manipulation library, which makes this harder. |
Something like OxyPlot can render a graph to an SVG, but Discord does not accept SVG image embeds, so a PNG renderer is still required. It's possible we could build a platform abstraction library and make native calls for the rendering, which is ugly. There are bitmap libraries, such as ImageSharp, but I haven't looked at these in conjunction with SVG rendering. There are libraries such as vvvv/SVG, but that one in particular includes a reference to System.Drawing and is thus probably unsuitable without modification. |
Possibility is using my bitmap graphing library, which is written with this use case in mind, but it's another component to maintain. |
By graph, do you mean a histogram? |
Histograms of score distributions would not be a bad feature either |
I agree, feel free to open a separate feature issue for that. |
Proposed model for bitmaps (also relevant in #35): Project CyberPatriot.BitmapProvider: common glue types and abstractions
Project CyberPatriot.BitmapProvider.ImageSharp: Implementation backed by ImageSharp
In terms of the line graphing, BitmapGraphing needs work, but I think it's a good start |
In terms of data retrieval:
var data = new google.visualization.arrayToDataTable([
['Time', 'Debian7_regional_platinum', 'Ubuntu14_regional_platinum', 'Windows8_regional_platinum'],
['02/05 17:15', 9, 4, 3],
['02/05 17:20', 16, 22, 9],
['02/05 17:25', 27, 22, 22],
['02/05 17:30', 34, 24, 37],
['02/05 17:35', 45, 36, 41],
['02/05 17:40', 45, 43, 50],
['02/05 17:45', 50, 55, 59],
['02/05 17:50', 56, 58, 69],
['02/05 17:55', 64, 77, 69],
['02/05 18:00', 64, 77, 73],
['02/05 18:05', 64, 77, 73],
['02/05 18:10', 67, 80, 73],
['02/05 18:15', 64, 80, 73],
['02/05 18:20', 64, 83, 75],
['02/05 18:25', 64, 83, 75],
...
['02/05 22:25', 57, 86, 85],
['02/05 22:30', 68, 86, 85],
['02/05 22:35', 73, 86, 85],
['02/05 22:40', 82, 86, 85],
['02/05 22:45', null, 86, null],
]); |
Add line graphs of team scores over time.
The text was updated successfully, but these errors were encountered: