-
Notifications
You must be signed in to change notification settings - Fork 82
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 a new option to display contest info. #50
Comments
@laporchen I would like to add an extension about contest ranking history in the future. In the latest refactoring, the data layer now fetches the contest information by default ( For now, my plan is to use d3 for plotting the curve, but I am not familiar with it. Please feel free to open a PR (or draft PR) if you want to contribute something like that. Thanks! The data fetching function: LeetCode-Stats-Card/src/core/query.ts Lines 6 to 95 in 7a0c2c2
|
It seems that D3 will not be an option since it can not work without DOM and JSDOM needs more than 20ms to initialize the instance. |
I have created an extension of contest rating history and both of README and DEMO have been updated. You may notice that the example in README is not me because I don't have enough contest data to show a meaningful graph. Feel free to tell me about your comment on the extension, thanks! |
I tried to make some small changes to this extension. But I'm not sure about the method to test this locally. Here's the error message if you're interested in.
|
It seems that the port (8976) has been used by another program (or maybe another wrangler?) Can you run My environment:
wrangler's issues: https://github.com/cloudflare/wrangler2/issues?q=is%3Aissue+8976+is%3Aclosed |
Just checked the versions
And I noticed that wrangle dev tries to login two times at the same time. Maybe this is why the address is in use?
|
Maybe the problem will be solved if you login ( |
@JacobLinCool Now I'm trying to make animation for the graph and show contest name on each points when hover on it. The alternative solution I'm looking for right now may be chart.js. |
Um... I don't think chart.js (or other alternatives, such as echart) will be a solution. Let me explain about some restrictions of SVG on GitHub:
As far as I know, all chart libraries are using JavaScript to make animations work. So, they are all not an option for our use case. Also, the hover state is not detectable if the SVG is loaded into If I misunderstand something, please let me know, thanks. |
Understand. I'm not familiar with CSS animations. I might need to look into it a bit more before trying something else for now. |
We could display user contest records with LeetCode-Query.
Maybe it could show the status like LeetCode User page.
Or just lists out recent contest rank like recent activities.
The text was updated successfully, but these errors were encountered: