You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in order to obtain same widths and same spaces in my Chart (barChart) I had to add dummy values to both ends, left and Right, when Data is Less that my design requirements.
I Would Like to LIMIT the Scrolling to the REAL Values and leave these "Dummy" Values Out of Range for Scrolling.
I Tried the Following: let barSize = Double(view.frame.size.width) / Double(maxBarsPerScreen) barChartView.viewPortHandler.restrainViewPort(offsetLeft: CGFloat(Double(leftSideDummies)*barSize), offsetTop: 0.0, offsetRight: CGFloat(Double(rightSideDummies)*barSize), offsetBottom: 0.0)
The Result is that the Chart is Exactly the same and STILL Scrolls to the Dummy Values.
Could you please help me out? What else can I Try?
Thanks
The text was updated successfully, but these errors were encountered:
hernanarber
changed the title
restrainViewPort not working
restrainViewPort is not working. Chart stays the same!
May 10, 2017
Hi:
in order to obtain same widths and same spaces in my Chart (barChart) I had to add dummy values to both ends, left and Right, when Data is Less that my design requirements.
I Would Like to LIMIT the Scrolling to the REAL Values and leave these "Dummy" Values Out of Range for Scrolling.
I Tried the Following:
let barSize = Double(view.frame.size.width) / Double(maxBarsPerScreen)
barChartView.viewPortHandler.restrainViewPort(offsetLeft: CGFloat(Double(leftSideDummies)*barSize), offsetTop: 0.0, offsetRight: CGFloat(Double(rightSideDummies)*barSize), offsetBottom: 0.0)
The Result is that the Chart is Exactly the same and STILL Scrolls to the Dummy Values.
Could you please help me out? What else can I Try?
Thanks
The text was updated successfully, but these errors were encountered: