Skip to content

[Enhancement] Add a combined "Total" metric line to the [HISTORICAL_DATA] chart for clearer activity tracking #359

Open

Description

@Yashaswini-K-P

Description

1. The Core Idea & Current Limitation

The [HISTORICAL_DATA] section on the user profile currently tracks cumulative solved questions broken down by individual difficulties (Easy, Medium, Hard) using shell-script style view toggles (./weekly.sh, ./monthly.sh, ./overall.sh).

Because the graph displays separate lines for each difficulty without a primary combined total, it is difficult to quickly evaluate at a glance whether a user had actual activity or a flat plateau on a given day without mentally adding up the individual counts.

2. Proposed Solution

  • Introduce a combined Total Solved dataset line into the Chart.js configuration alongside or above the existing difficulty breakdown lines.
  • Compute the total dynamically (either via backend sync updates or frontend summation of Easy + Medium + Hard for each timeline entry).
  • Style the Total line with a distinct, prominent color (e.g., bright blue/cyan) so student activity levels and plateau periods are instantly noticeable.

Activity

  1. github-actions commented on Jul 23, 2026

    @github-actions
    Contributor

    Thank you for opening an issue.

    Please review our CONTRIBUTING.md guidelines before getting started.

    A maintainer will review this issue shortly. If you would like to work on the issue yourself, please leave a comment requesting assignment.

    Issue Assignment Policy

    • The issue creator is given the first priority to work on their issue.
    • If the creator declines or does not request assignment, the issue will be assigned to others in the order of requests received.
    • Please do not submit PRs or begin work until you are officially assigned.

    Note: This project is currently maintained by a solo maintainer, so reviews, assignments, and responses may sometimes take a little time. Thanks for your patience.

  2. jagdish-15 commented on Jul 24, 2026

    @jagdish-15
    Collaborator

    I think this is a nice improvement and I'd be happy to have it implemented.

    Before working on this, could you also open a separate issue (or expand this one if you prefer) to align the graph colours with the rest of the application? The main leaderboard already uses colours that exactly match LeetCode's difficulty colours, whereas the charts on the user profile and the comparison modal bar graphs currently use a slightly different palette.

    The idea would be to first update both the user profile graphs and the comparison modal bar graphs to use the same colour scheme as the leaderboard, and then implement the new Total Solved line on top of that. This will keep the visual theme consistent across the application.

  3. TanCodeX commented on Jul 25, 2026

    @TanCodeX

    @jagdish-15 Please assign me this under gssoc.

  4. aaniya22 commented on Jul 28, 2026

    @aaniya22
    Contributor

    pls assign this to me under gssoc

  5. Yashaswini-K-P commented on Jul 30, 2026

    @Yashaswini-K-P
    ContributorAuthor

    @jagdish created a separate issue for colour scheme

  6. github-actions commented on Aug 15, 2026

    @github-actions
    Contributor

    This issue has been inactive for 14 days and has been marked as stale. To keep this issue open, please leave a comment.

  7. Yashaswini-K-P commented on Aug 15, 2026

    @Yashaswini-K-P
    ContributorAuthor

    working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

FrontendTask mainly involving frontendtype:featureNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions