Coder Social home page Coder Social logo

Comments (6)

C451 avatar C451 commented on May 23, 2024

My suspicions were right (from the first issue): it seems you are trying to use this repo to develop your app (is it right?).

If you need to embed this lib to your project, just install it with npm. It has an API interface (all you need to build custom charts) and you can update your data from js. But you must do it reactively:

https://github.com/C451/trading-vue-js/blob/master/src/examples/Reactive.vue

If you are talking about the development of the lib itself, yeah, it needs some kind of playground editor that will simplify things. But for now it's TBA.

from trading-vue-js.

AlexanderPeters avatar AlexanderPeters commented on May 23, 2024

Ok, thanks, will look into that.

from trading-vue-js.

Tucsky avatar Tucsky commented on May 23, 2024

just the next candle or adding another 20 candles onto the end, same thing just appending to the graph), avoiding the need for a recompile each time I want to add a data point.

Big subject, imo. Exposing append & prepend methods would be super useful !
https://github.com/C451/trading-vue-js/blob/8df612c90dac0bde521e08a17afd03f87c13c819/src/components/Chart.vue#L223
Partial rendering of the candles & indicators etc...

from trading-vue-js.

C451 avatar C451 commented on May 23, 2024

just the next candle or adding another 20 candles onto the end, same thing just appending to the graph), avoiding the need for a recompile each time I want to add a data point.

Big subject, imo. Exposing append & prepend methods would be super useful !
trading-vue-js/src/components/Chart.vue

Line 223 in 8df612c

     data: { 

Partial rendering of the candles & indicators etc...

Yeah, I had this idea. The problem here is custom data structures, so user still needs to update all his data fields.

Vue.$set()

is designed specifically for that. But I will think about set/append helpers.

About partial rendering - the bottleneck is not rendering itself, but slicing (when data is huge)

from trading-vue-js.

vab2048 avatar vab2048 commented on May 23, 2024

If you need to embed this lib to your project, just install it with npm. It has an API interface (all you need to build custom charts) and you can update your data from js. But you must do it reactively:

https://github.com/C451/trading-vue-js/blob/master/src/examples/Reactive.vue

This link is now 404. Do you have a link to the most recent way of doing this?

from trading-vue-js.

C451 avatar C451 commented on May 23, 2024

@vab2048 Hi, you can find it in earlier versions of the repo, but this example is more relevant: https://github.com/C451/trading-vue-js/blob/master/test/tests/DataHelper.vue

from trading-vue-js.

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.