Giter VIP home page Giter VIP logo

Comments (12)

rsandor avatar rsandor commented on August 24, 2024

Upon reflection I believe this is outside the scope of the project at the moment. Will need to revisit this when approaching a first major version.

from epoch.

 avatar commented on August 24, 2024

Is there any news on this issue?

from epoch.

rsandor avatar rsandor commented on August 24, 2024

Originally I was wondering what use it would be to have legends, considering that one could just use HTML to defined them "around" the charts. But we ended up having to do some labeling and overlay extensions when using the library internally so I am thinking to open this back up again (or refile).

Out of curiosity what is your specific use case?

from epoch.

 avatar commented on August 24, 2024

Out of curiosity what is your specific use case?

I need a way to label each of the bar chart bars with their respective values. Not having the labels makes the user guess the approximate value of the bar, which isn't ideal. Something like the following is what I was hoping to achieve:

687474703a2f2f63646e2e65706f63682e636f666665652e676c6f62616c2e70726f642e666173746c792e6e65742f696d616765732f62617369632f6261722e706e67

from epoch.

rsandor avatar rsandor commented on August 24, 2024

Ah, I see what you're getting at. I am beginning to wonder if some sort of hover popover that displays values might be useful to have by default for all of the basic plots. Also looking into ways that we can make the plots easier to override especially in the case of rendering so you can easily create what you need.

from epoch.

 avatar commented on August 24, 2024

I am beginning to wonder if some sort of hover popover that displays values might be useful to have by default for all of the basic plots

I am currently experimenting with nvd3 has this functionality, but I would rather prefer the label to be always visible.

I would like to use epoch over nvd3, as the outputted SVG tree is cleaner and easier to work with. I will see if I can modify epoch to display the labels in the manner I am looking for.

from epoch.

rsandor avatar rsandor commented on August 24, 2024

Yeah it's meant to be pretty extensible like that. Just playing around with it I think this will do exactly what you need: https://gist.github.com/rsandor/8ba96a3b59926f115e52

from epoch.

 avatar commented on August 24, 2024

Thank you for that solution, @rsandor. Hopefully that will merged into a future release.

from epoch.

tarelli avatar tarelli commented on August 24, 2024

In my opinion the reason why it would be useful to have as part of the library is that otherwise a lot of people will end up adding it themselves rewriting the same code independently. Also if you do a good job and you want colours to match what's in the plotting, tooltips to show longer names, options to show the labels in different places, etc. it starts being a non negligible effort.

from epoch.

dmitry avatar dmitry commented on August 24, 2024

I agree with @tarelli 👍

from epoch.

rsandor avatar rsandor commented on August 24, 2024

@tarelli - Sounds like you have a good idea of how it might work. Want to code it up and send a PR?

from epoch.

riskypathak avatar riskypathak commented on August 24, 2024

I need this today... Any update whether this is implemented or not??

from epoch.

Related Issues (20)

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.