GithubHelp home page GithubHelp logo

Code Cleanup about open-social-security HOT 4 CLOSED

mikepiper avatar mikepiper commented on August 26, 2024
Code Cleanup

from open-social-security.

Comments (4)

brian-courts avatar brian-courts commented on August 26, 2024

If you determine those variables are no longer needed, feel free to eliminate them, and do general cleanup also.

pvFractionArrays are currently used to determine color numbers for the graph, in addition to string output. If you have a different way of generating the strings, the pvFractionArrays would no longer be needed.

In fact, the color determination could be streamlined quite a bit if we don't need the fractions for the string. I can do that streamlining after you've done other cleanup.

from open-social-security.

MikePiper avatar MikePiper commented on August 26, 2024

I just made a push that removes the variables/functions discussed above, except for pvFractionArrays.

pvFractionArrays is still being used for the strings in the hover tooltip.

Separately, what would be your thoughts on removing the tooltip?

It's already super easy/fast to just click around on the graph/chart to see the results of any desired location. And that way there would be no need to essentially have duplicate versions of certain functionality. (A related point is a concern about how the tooltip cannot as fully explain the meaning of the filing dates in question.)

from open-social-security.

brian-courts avatar brian-courts commented on August 26, 2024

I eliminated the pvFractionArrays as part of streamlining the color determination process.

I think the hover tooltip is useful for those who want an easy way to compare the option under the pointer with the selected choice. The user has the information for both items on the screen at the same time. He/she doesn't have to remember, for example, "Now what were those three claim dates that just disappeared from my screen?"

The tooltip provided in my latest pull request could easily be modified to include the full text as it it presented for the selected option. However, I suspect most users would find it easier to get the main points from a condensed version, like the one I propose.

from open-social-security.

MikePiper avatar MikePiper commented on August 26, 2024

Closing this issue as resolved. Thanks for the help with it!

from open-social-security.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.