-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TableView does not scroll vertically after graph is rendered to cells #2757
Comments
that's because we disabled it. you can disable if self.isDragEnabled &&
(!self.hasNoDragOffset || !self.isFullyZoomedOut)
{
_isDragging = true
_closestDataSetToTouch = getDataSetByTouchPoint(point: recognizer.nsuiLocationOfTouch(0, inView: self))
let translation = recognizer.translation(in: self)
let didUserDrag = (self is HorizontalBarChartView) ? translation.y != 0.0 : translation.x != 0.0
// Check to see if user dragged at all and if so, can the chart be dragged by the given amount
if didUserDrag && !performPanChange(translation: translation)
{
if _outerScrollView !== nil
{
// We can stop dragging right now, and let the scroll view take control
_outerScrollView = nil
_isDragging = false
}
}
else
{
if _outerScrollView !== nil
{
// Prevent the parent scroll view from scrolling
_outerScrollView?.nsuiIsScrollEnabled = false
}
}
_lastPanPoint = recognizer.translation(in: self) |
I just came across #2413, you can try this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello..! Thank you for this wonderful and useful library. I want to plot live data on the graph.
I have referred to the solution of this issue (#754)
and have rendered graph to tableView.
Problem is:
maxXRange
data ofopen func setVisibleXRange(minXRange: Double, maxXRange: Double)
is set to the graphView . After themax range is attended the graph starts scrolling automatically to the left side.
side(backwards) instead but the tableView does not scroll.
touches the padding spaces to scroll up or down).
I have done this so far:
I have shown 10 graph cell rows in the table. Even though I have hidden the
![img_0061](https://user-images.githubusercontent.com/29946749/29816475-d3eec10c-8cd1-11e7-8d18-586e501551e6.JPG)
legend
, it still appears only for 6th row initially and after I scroll, legend disappears and graph starts plotting the points. It happens only for 6th row. For 5 visible rows on the screens it works fine, but when I scroll to see next 5 rows for 6th row this happens.tableView.realodData()
does not work. Graph is not rendered to tableView. here (Image appears to be rotated)Also I don't want to see the values of graph plotted on it. I tried to fix this but couldn't
![3](https://user-images.githubusercontent.com/29946749/29817687-9a17bbaa-8cd6-11e7-9808-dfd2d8bd8766.png)
I want to plot different graph for different cells with different colours.
![1](https://user-images.githubusercontent.com/29946749/29816512-f652c6f8-8cd1-11e7-8624-3618777c6e15.png)
What I get:
Expected Output :
![2](https://user-images.githubusercontent.com/29946749/29816603-54c2285a-8cd2-11e7-8b87-73b74d5b72d3.png)
Help or suggestions appreciated. Thanks :)
The text was updated successfully, but these errors were encountered: