Giter VIP home page Giter VIP logo

Comments (4)

r-mzy47 avatar r-mzy47 commented on July 17, 2024

Currently not.
But good Idea. I will add this feature as soon as possible.

from candlesticks.

christenbc avatar christenbc commented on July 17, 2024

Good, can you think of a way of doing this? I might try to contribute if I have got some time

from candlesticks.

r-mzy47 avatar r-mzy47 commented on July 17, 2024

Of course.
In [_CandlesticksState] class there is an index variable that holds the rightmost visible candle's index. it is initially -10 so when the chart runs you see a gap between the last candle and the right column. by changing this variable and doing setState chart jumps to your index. also, you have the list of candles available in this class (using widget.candles) so you can go among them and find the index of the candle with corresponding time.

For a better UX, I suggest that going from index A to index B whould be animation otherwise the chart jumps to your index.

And the other thing is handle you UI things in [MobileChart] and [DesktopChart] classes and pass up the timestamp using callback you pass down in [_CandlesticksState] class.
Pelase contact me in case of any question. [email protected]
Good luck.

from candlesticks.

christenbc avatar christenbc commented on July 17, 2024

Thanks @r-mzy47 for the information.

I opened a PR regarding this issue.

from candlesticks.

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.