Giter Club home page Giter Club logo

Comments (7)

floriannagel avatar floriannagel commented on June 16, 2024 1

Thank you :)

from scrollablegraphview.

philackm avatar philackm commented on June 16, 2024

Hi!

Thanks for this!

I will have to implement number 1 in the future, but for now I've pushed a new version (1.1.2) which checks if you're setting the same data again and if so, ignores it.

Can you try it out and let me know if it fixes your problem?

from scrollablegraphview.

felix-dumit avatar felix-dumit commented on June 16, 2024

@philackm Yeah that fixes it, thanks for the quick reply!

from scrollablegraphview.

floriannagel avatar floriannagel commented on June 16, 2024

I can back this up, i want to realise a simple WaveForm and it looks uncool, because the whole bar is refreshing again and again. Is there a solution? :/

from scrollablegraphview.

philackm avatar philackm commented on June 16, 2024

Can you explain a little bit about what you mean by "a simple waveform"?

from scrollablegraphview.

floriannagel avatar floriannagel commented on June 16, 2024

Something like this: https://developers.soundcloud.com/assets/posts/waveform_rendering_mask-2d44b706dd9171ec4bdb6720fa2c0fb1.png
But just with Bars going Up. Don't know if i can make it in both directions. Up und Down. And i have an array which will be reloaded fast. So the animation just startet over and over in the recording

from scrollablegraphview.

philackm avatar philackm commented on June 16, 2024

I'm still not entirely sure what you want to do.

You should be able to create a bar graph that looks like a waveform, here is an example of a sine wave:

simulator screen shot jun 14 2016 12 43 08 pm

Are you trying to animate the waveform? As in, are you updating the array and then calling setData in very quick succession?

If so, that isn't really supported and was not the idea of calling setData, however, you should be able to do it by turning off the startup animation (and by using the latest version in cocoapods, I had to make a change to make it work). Again, this isn't really supported though. (If it is indeed what you're trying to do.)

graphView.shouldAnimateOnStartup = false

I was able to animate a sine wave by turning that setting off and then calling setData very quickly.

Sine Wave Animation

from scrollablegraphview.

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.