-
-
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
Extend beyond values (feature request) #1025
Comments
the first question would be, what's your chart view's frame and contentRect. |
Why not parameterize the equation, then add endpoints to your data set generated from the parameterized equation? |
@aastein I'm not sure if it is data related, but I highly doubt that. If it ends up being a data issue, I'll take that into consideration @liuxuan30 it appears that the frame is full size: |
Are lines supposed to extend past the defined data points per the existing functionality? I don't have any problem extending lines to the edges of my views if I have data points defined at the edges. Is it that your x-axis limits extend to the edge of the view, but your data points lie within those limits? If this is the case: Why not do: |
@aastein hmm, I guess you are right. Maybe this should be a feature request. It would look a ton better if the fill and line extended beyond the point. I took your suggestion, but the following makes the points disappear: |
I believe you are using maxXRange incorrectly: "Limits the maximum and minimum value count that can be visible by pinching and zooming. e.g. minRange=10, maxRange=100 no less than 10 values and no more that 100 values can be viewed at once without scrolling" So youre setting the maximum amount of values that can be displayed equal to the view frame width. Pretty sure that's not right. |
@aastein ah, I assumed, since it was a float value, it was not a count, but a scaling size. |
I see that there is a layer fill option? Could I use this? (I couldn't figure out how) |
I don't see what feature is requested? offsetTop += self.extraTopOffset
offsetRight += self.extraRightOffset
offsetBottom += self.extraBottomOffset
offsetLeft += self.extraLeftOffset
_viewPortHandler.restrainViewPort(
offsetLeft: max(self.minOffset, offsetLeft),
offsetTop: max(self.minOffset, offsetTop),
offsetRight: max(self.minOffset, offsetRight),
offsetBottom: max(self.minOffset, offsetBottom)) |
@liuxuan30 I've pretty much given up on this, and have taken the UI in a nicer direction. Thanks for this, maybe it will help someone else. |
you only need time and the debug skills, the library is too much to understand in a short time. Take your time! |
@liuxuan30 I've rebuilt the UI to reflect something different. Not tinkering around with this library. Consumed my thoughts and time. |
Actually any charting library is an overkill for your UI. If I had to implement what you've shown us in the screenshot, I wouldn't have bothered even looking for a charting library. |
@danielgindi don't make assumptions off of little information. This is a diabetes logging application, having graphs to show blood glucose and insulin doses are very informative. |
Is there anyway I can extend like above?
The text was updated successfully, but these errors were encountered: