Giter Club home page Giter Club logo

Comments (7)

gangbusters avatar gangbusters commented on September 22, 2024 1

I also +1 multiple values on a graph. Let us know if you're working on it and/or need help with it @philackm!

from scrollablegraphview.

punithbm avatar punithbm commented on September 22, 2024 1

@philackm it would be great if we can have a multi line option

from scrollablegraphview.

jamesktan avatar jamesktan commented on September 22, 2024 1

One workaround that I've used here is to overlay 2 Scrollable Graph Views at the same position and then use the UIScrollViewDelegate method to scroll each plot (using the offset) like below:

func scrollViewDidScroll(_ scrollView: UIScrollView) {
   if scrollView == graphView2 || scrollView == graphView {
     let offset = scrollView.contentOffset
     graphView?.contentOffset = offset
     graphView2?.contentOffset = offset
   }
 }

from scrollablegraphview.

punithbm avatar punithbm commented on September 22, 2024

@jamesktan hey, Is't possible for you to share some more information or code on how were you able to solve this.. This will be very helpful for us

from scrollablegraphview.

jamesktan avatar jamesktan commented on September 22, 2024

@Punith1234 Sure, but there's not much more to it other than:

        graphView?.delegate = self
        graphView2?.delegate = self
        self.plotView.insertSubview(graphView2!, aboveSubview: graphView!)

Everything else is really just:

  • Create a container view (plotView in the above)
  • Create a graph and add it to the container
  • Create the second graph, make the background transparent, set the axis and all to match the first graph
  • Add the second graph above the first graph

from scrollablegraphview.

punithbm avatar punithbm commented on September 22, 2024

@jamesktan thanks a lot ..

from scrollablegraphview.

philackm avatar philackm commented on September 22, 2024

The multiple line section of this issue has been added in version 4. I will create a new issue for the touchability.

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.