Comments (7)
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.
@philackm it would be great if we can have a multi line option
from scrollablegraphview.
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.
@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.
@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.
@jamesktan thanks a lot ..
from scrollablegraphview.
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)
- Bar Chart with individual columns having varying widths?
- unable to set dot on multiple graph HOT 1
- app crashes on func. - setPlotPointPositions(forNewlyActivatedPoints activatedPoints: [Int], withData data: [Double]) when i scroll the graph HOT 4
- Maximum Number of Points on screen
- DotPlot are not clickable HOT 3
- Ease out animation bug
- y-axis dynamic value instead of original value.
- Carthage Compile error
- How to Create a Stacked Bar Chart? HOT 1
- App crashed every time a value is added HOT 3
- App crash on startup
- As I change the min and max the reference lines text doesn't change HOT 1
- Error installing ScrollableGraphView from Cocopod
- pointIndex - current day
- Is there a way to stop the graph trailing to 0 at the beginning and end of a plot? HOT 2
- Crashing if all the values for Y axis are 0
- put a number related to each bar index
- change the color of each column
- Bar Chart customisations
- Points HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrollablegraphview.