Giter Club home page Giter Club logo

Comments (5)

rrag avatar rrag commented on June 27, 2024

Instead of the cross hair snapping to the y, I was thinking of an in-place tooltip, like this. This will be a new tooltip component InPlaceTooltip and anyone can use this along with or as a replacement of MouseCoordinate.

from react-stockcharts.

Pinxie avatar Pinxie commented on June 27, 2024

Oh yes that would be great, that's exactly what I would need. Adding an optional callback when a tooltip is requested ( tooltipRequested )on a data point would be great too (to specify its text content).

One problem I have with what I have done with my modifying of MouseCoordinates is that no matter how close the mouse pointer is from a point, it has to be the closest X-wise first, then Y-wise, so the user experience in some cases can be a real pain (try "tooltiping" the third orange data point in your example, here it's not an issue because the Y axis is the same).

To avoid this problem of point, it might be nice to be able to specify which curve (or, at least, Chart) is "tooltipable" or not.

from react-stockcharts.

rrag avatar rrag commented on June 27, 2024

Work in progress version here

from react-stockcharts.

Svjard avatar Svjard commented on June 27, 2024

Excellent work! Been hoping to see hover tooltip at some point.

from react-stockcharts.

rrag avatar rrag commented on June 27, 2024

fixed, published in 0.5

from react-stockcharts.

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.